changeset 34ddd1487e55 in modules/edocument_uncefact:default
details:
https://hg.tryton.org/modules/edocument_uncefact?cmd=changeset&node=34ddd1487e55
description:
Rename zip into postal code
issue9853
review340411002
diffstat:
template/16B-CII/CrossIndustryInvoice.xml | 2 +-
tests/test_edocument_uncefact.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r c8e206dde19b -r 34ddd1487e55 template/16B-CII/CrossIndustryInvoice.xml
--- a/template/16B-CII/CrossIndustryInvoice.xml Sat Dec 19 17:08:45 2020 +0100
+++ b/template/16B-CII/CrossIndustryInvoice.xml Wed Mar 31 23:59:33 2021 +0200
@@ -24,7 +24,7 @@
</ram:SpecifiedTaxRegistration>
</py:def>
<py:def function="TradeAddress(address)">
- <ram:PostcodeCode py:if="address.zip">${address.zip}</ram:PostcodeCode>
+ <ram:PostcodeCode
py:if="address.postal_code">${address.postal_code}</ram:PostcodeCode>
<ram:BuildingName
py:if="address.name">${address.name}</ram:BuildingName>
<py:with vars="lines = address.street.splitlines()">
<ram:LineOne py:if="len(lines) > 0">${lines[0]}</ram:LineOne>
diff -r c8e206dde19b -r 34ddd1487e55 tests/test_edocument_uncefact.py
--- a/tests/test_edocument_uncefact.py Sat Dec 19 17:08:45 2020 +0100
+++ b/tests/test_edocument_uncefact.py Wed Mar 31 23:59:33 2021 +0200
@@ -34,7 +34,7 @@
address = Mock(spec=Address,
street="St sample, 15",
city="Scranton",
- zip="1000",
+ postal_code="1000",
subdivision=None,
country=Mock(spec=Country,
code='US'),