changeset 4f1801a42957 in modules/stock_package_shipping_ups:default details: https://hg.tryton.org/modules/stock_package_shipping_ups?cmd=changeset&node=4f1801a42957 description: Rename zip into postal code
issue9853 review340411002 diffstat: stock.py | 2 +- tests/scenario_shipping_ups.rst | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diffs (33 lines): diff -r 6e4a1b91a0a1 -r 4f1801a42957 stock.py --- a/stock.py Sat Mar 13 23:16:32 2021 +0100 +++ b/stock.py Wed Mar 31 23:59:33 2021 +0200 @@ -272,7 +272,7 @@ 'AddressLine': [l[:35] for l in (address.street or '').splitlines()[:3]], 'City': address.city[:30], - 'PostalCode': (address.zip or '').replace(' ', '')[:9], + 'PostalCode': (address.postal_code or '').replace(' ', '')[:9], 'CountryCode': address.country.code if address.country else '', }, } diff -r 6e4a1b91a0a1 -r 4f1801a42957 tests/scenario_shipping_ups.rst --- a/tests/scenario_shipping_ups.rst Sat Mar 13 23:16:32 2021 +0100 +++ b/tests/scenario_shipping_ups.rst Wed Mar 31 23:59:33 2021 +0200 @@ -59,7 +59,7 @@ >>> customer.save() >>> customer_address = customer.addresses.new() >>> customer_address.street = 'Anfield Road' - >>> customer_address.zip = 'L 40TH' + >>> customer_address.postal_code = 'L 40TH' >>> customer_address.city = 'Liverpool' >>> customer_address.country = britain >>> customer_address.save() @@ -76,7 +76,7 @@ >>> company_address = Address() >>> company_address.party = company.party >>> company_address.street = '2 rue de la Centrale' - >>> company_address.zip = '4000' + >>> company_address.postal_code = '4000' >>> company_address.city = 'Sclessin' >>> company_address.country = belgium >>> company_address.save()