changeset 4c2db8d802dd in proteus:default
details: https://hg.tryton.org/proteus?cmd=changeset&node=4c2db8d802dd
description:
        Rename zip into postal_code
diffstat:

 doc/index.rst |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r 709d6211ab8f -r 4c2db8d802dd doc/index.rst
--- a/doc/index.rst     Mon May 03 15:32:43 2021 +0200
+++ b/doc/index.rst     Wed May 05 16:00:40 2021 +0200
@@ -67,7 +67,7 @@
 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 @@
 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.

Reply via email to