Rename zip to postal_code

This commit is contained in:
Raimon Esteve 2021-12-10 10:03:50 +01:00
parent 0867dd33ad
commit f8577e4434
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ class Address(metaclass=PoolMeta):
# set country_zip, zip and city to NULL
if postal_codes:
postal_code, = postal_codes
values['zip'] = postal_code.postal_code
values['postal_code'] = postal_code.postal_code
values['city'] = postal_code.city
values['country'] = postal_code.country.id
values['subdivision'] = (postal_code.subdivision.id if