summaryrefslogtreecommitdiff
path: root/odoo/fields.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2019-05-02 13:16:27 +0200
committerChristophe Simonis <chs@odoo.com>2019-05-02 13:16:27 +0200
commit3ca58705c98f5976efecfdcd20ae603dc9ecbbe1 (patch)
treeb4503ca7b2612ff8dafa761dc824452ce1de020a /odoo/fields.py
parent848a1b970bd493363b29883c0c20c55c820d04ee (diff)
parent2c68df0ab43cb42e6762d7a1929471bf3f3df920 (diff)
[MERGE] forward port branch saas-11.3 up to 2c68df0ab43
Diffstat (limited to 'odoo/fields.py')
-rw-r--r--odoo/fields.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/odoo/fields.py b/odoo/fields.py
index ad23302212b..bbb8c908725 100644
--- a/odoo/fields.py
+++ b/odoo/fields.py
@@ -2235,8 +2235,8 @@ class _RelationalMulti(_Relational):
elif isinstance(value, (list, tuple)):
# value is a list/tuple of commands, dicts or record ids
comodel = record.env[self.comodel_name]
- # determine the value ids; by convention empty on new records
- ids = OrderedSet(record[self.name].ids if record.id else ())
+ # determine the value ids
+ ids = OrderedSet(record[self.name]._ids)
# modify ids with the commands
for command in value:
if isinstance(command, (tuple, list)):