From 324cc6796fc0e6a6720cf8106955a4d277d460e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 5 May 2021 16:00:40 +0200 Subject: [PATCH] Rename zip into postal_code --- doc/index.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/index.rst b/doc/index.rst index e70e5dd58e..a5b5a37138 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -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.