Rename zip into postal_code

This commit is contained in:
Cédric Krier
2021-05-05 16:00:40 +02:00
parent fb7469b18d
commit 324cc6796f
+3 -3
View File
@@ -67,7 +67,7 @@ Creating an address for the party
Addresses are store on party with a `One2Many` field. So the new address just
needs to be appended to the list `addresses`.
>>> address = party.addresses.new(zip='42')
>>> address = party.addresses.new(postal_code='42')
>>> party.save()
>>> party.addresses #doctest: +ELLIPSIS
[proteus.Model.get('party.address')(...)]
@@ -108,9 +108,9 @@ Sorting addresses and register order
Addresses are ordered by sequence which means they can be stored following a
specific order. The `set_sequence` method stores the current order.
>>> address = party.addresses.new(zip='69')
>>> address = party.addresses.new(postal_code='69')
>>> party.save()
>>> address = party.addresses.new(zip='23')
>>> address = party.addresses.new(postal_code='23')
>>> party.save()
Now changing the order.