changeset e0c8c41b3ace in modules/account_payment_stripe:default
details: 
https://hg.tryton.org/modules/account_payment_stripe?cmd=changeset&node=e0c8c41b3ace
description:
        Rename zip into postal code

        issue9853
        review340411002
diffstat:

 CHANGELOG             |  1 +
 payment.py            |  5 -----
 view/account_form.xml |  2 --
 3 files changed, 1 insertions(+), 7 deletions(-)

diffs (40 lines):

diff -r d2505410f1cb -r e0c8c41b3ace CHANGELOG
--- a/CHANGELOG Sun Mar 07 11:13:53 2021 +0100
+++ b/CHANGELOG Wed Mar 31 23:59:33 2021 +0200
@@ -1,3 +1,4 @@
+* Remove unused zip code
 * Update Stripe Customer
 * Add preferred locales to Customer
 
diff -r d2505410f1cb -r e0c8c41b3ace payment.py
--- a/payment.py        Sun Mar 07 11:13:53 2021 +0100
+++ b/payment.py        Wed Mar 31 23:59:33 2021 +0200
@@ -973,7 +973,6 @@
             },
         depends=['webhook_identifier'],
         help="The Stripe's signing secret of the webhook.")
-    zip_code = fields.Boolean("Zip Code", help="Verification on checkout")
     last_event = fields.Char("Last Event", readonly=True)
 
     @classmethod
@@ -987,10 +986,6 @@
         if Pool().test:
             cls.__rpc__['webhook'] = RPC(readonly=False, instantiate=0)
 
-    @classmethod
-    def default_zip_code(cls):
-        return True
-
     @fields.depends('webhook_identifier')
     def on_change_with_webhook_endpoint(self, name=None):
         if not self.webhook_identifier:
diff -r d2505410f1cb -r e0c8c41b3ace view/account_form.xml
--- a/view/account_form.xml     Sun Mar 07 11:13:53 2021 +0100
+++ b/view/account_form.xml     Wed Mar 31 23:59:33 2021 +0200
@@ -13,6 +13,4 @@
     <button name="new_identifier"/>
     <label name="webhook_signing_secret"/>
     <field name="webhook_signing_secret" colspan="3"/>
-    <label name="zip_code"/>
-    <field name="zip_code"/>
 </form>

Reply via email to