From 8c29bdfae6da96d1bf9f32266382012863df5f21 Mon Sep 17 00:00:00 2001 From: Florent de Labarre Date: Sun, 24 Jun 2018 19:52:56 +0000 Subject: [PATCH] [FIX] doc: correct description of write methode One2many fields can use it actually closes odoo/odoo#38193 X-original-commit: 765566032e60252ec8fb7800200ed05addbfce65 Signed-off-by: Martin Trigaux (mat) --- odoo/models.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/odoo/models.py b/odoo/models.py index 0b37a0c975e..3fe276926cd 100644 --- a/odoo/models.py +++ b/odoo/models.py @@ -3355,16 +3355,13 @@ Record ids: %(records)s (from the database). Can not be used in :meth:`~.create`. ``(3, id, _)`` removes the record of id ``id`` from the set, but does not - delete it. Can not be used on - :class:`~odoo.fields.One2many`. Can not be used in + delete it. Can not be used in :meth:`~.create`. ``(4, id, _)`` - adds an existing record of id ``id`` to the set. Can not be - used on :class:`~odoo.fields.One2many`. + adds an existing record of id ``id`` to the set. ``(5, _, _)`` removes all records from the set, equivalent to using the - command ``3`` on every record explicitly. Can not be used on - :class:`~odoo.fields.One2many`. Can not be used in + command ``3`` on every record explicitly. Can not be used in :meth:`~.create`. ``(6, _, ids)`` replaces all existing records in the set by the ``ids`` list,