summaryrefslogtreecommitdiff
path: root/odoo/fields.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2019-05-02 10:59:21 +0200
committerChristophe Simonis <chs@odoo.com>2019-05-02 10:59:21 +0200
commit2c68df0ab43cb42e6762d7a1929471bf3f3df920 (patch)
tree6b50e22be60152c7d6218d791076fe4a4457bd4e /odoo/fields.py
parentb1530265e4b5ef6dc67919154f6827ff36f6aae3 (diff)
parent82c901c93797b15ab33b5e784450e147c1bc3ba8 (diff)
[MERGE] forward port branch 11.0 up to 82c901c9379
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 0acacc0a6d3..f74f9e53a8e 100644
--- a/odoo/fields.py
+++ b/odoo/fields.py
@@ -2115,8 +2115,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)):