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

        issue9853
        review340411002
diffstat:

 mandate.fodt                       |  6 +++---
 template/base.xml                  |  2 +-
 tests/test_account_payment_sepa.py |  2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diffs (52 lines):

diff -r 13c9be5bfcaf -r ab9cb2e9c5ff mandate.fodt
--- a/mandate.fodt      Sun Mar 21 16:09:13 2021 +0100
+++ b/mandate.fodt      Wed Mar 31 23:59:33 2021 +0200
@@ -701,7 +701,7 @@
       <text:p text:style-name="P9"/>
      </table:table-cell>
      <table:table-cell table:style-name="Table1.B5" office:value-type="string">
-      <text:p text:style-name="Table_20_Contents"><text:placeholder 
text:placeholder-type="text">&lt;mandate.party.addresses[0].zip if 
mandate.party.addresses else &apos;&apos;&gt;</text:placeholder></text:p>
+      <text:p text:style-name="Table_20_Contents"><text:placeholder 
text:placeholder-type="text">&lt;mandate.party.addresses[0].postal_code if 
mandate.party.addresses else &apos;&apos;&gt;</text:placeholder></text:p>
      </table:table-cell>
      <table:table-cell table:style-name="Table1.B1" office:value-type="string">
       <text:p text:style-name="P7"><text:placeholder 
text:placeholder-type="text">&lt;mandate.party.addresses[0].city if 
mandate.party.addresses else &apos;&apos;&gt;</text:placeholder></text:p>
@@ -831,7 +831,7 @@
       <text:p text:style-name="P9"/>
      </table:table-cell>
      <table:table-cell table:style-name="Table1.B5" office:value-type="string">
-      <text:p text:style-name="P8"><text:placeholder 
text:placeholder-type="text">&lt;mandate.company.party.addresses[0].zip if 
mandate.company.party.addresses else 
&apos;&apos;&gt;</text:placeholder><text:soft-page-break/></text:p>
+      <text:p text:style-name="P8"><text:placeholder 
text:placeholder-type="text">&lt;mandate.company.party.addresses[0].postal_code 
if mandate.company.party.addresses else 
&apos;&apos;&gt;</text:placeholder><text:soft-page-break/></text:p>
      </table:table-cell>
      <table:table-cell table:style-name="Table1.B1" office:value-type="string">
       <text:p text:style-name="P8"><text:placeholder 
text:placeholder-type="text">&lt;mandate.company.party.addresses[0].city if 
mandate.company.party.addresses else 
&apos;&apos;&gt;</text:placeholder><text:soft-page-break/></text:p>
@@ -947,4 +947,4 @@
    <text:p text:style-name="P15"><text:placeholder 
text:placeholder-type="text">&lt;/for&gt;</text:placeholder></text:p>
   </office:text>
  </office:body>
-</office:document>
\ No newline at end of file
+</office:document>
diff -r 13c9be5bfcaf -r ab9cb2e9c5ff template/base.xml
--- a/template/base.xml Sun Mar 21 16:09:13 2021 +0100
+++ b/template/base.xml Wed Mar 31 23:59:33 2021 +0200
@@ -50,7 +50,7 @@
         <!-- SubDept -->
         <StrtNm py:if="address.street">${address.street[:70]}</StrtNm>
         <!-- BldgNb -->
-        <PstCd py:if="address.zip">${address.zip[:16]}</PstCd>
+        <PstCd py:if="address.postal_code">${address.postal_code[:16]}</PstCd>
         <TwnNm py:if="address.city">${address.city[:35]}</TwnNm>
         <CtrySubDvsn 
py:if="address.subdivision">${address.subdivision.rec_name[:35]}</CtrySubDvsn>
         <Ctry py:if="address.country">${address.country.code}</Ctry>
diff -r 13c9be5bfcaf -r ab9cb2e9c5ff tests/test_account_payment_sepa.py
--- a/tests/test_account_payment_sepa.py        Sun Mar 21 16:09:13 2021 +0100
+++ b/tests/test_account_payment_sepa.py        Wed Mar 31 23:59:33 2021 +0200
@@ -37,7 +37,7 @@
     bank = Bank(party=bank_party, bic='BICODEBBXXX')
     bank.save()
     customer = Party(name='Customer')
-    address = Address(street='street', zip='1234', city='City')
+    address = Address(street='street', postal_code='1234', city='City')
     customer.addresses = [address]
     customer.save()
     return {

Reply via email to