diff options
| author | Christophe Simonis <chs@odoo.com> | 2019-05-03 09:16:50 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2019-05-03 09:16:50 +0200 |
| commit | 62017de41e733b470de9518ba9cd39a09e249cf4 (patch) | |
| tree | 5fb5954ab956e1a0de1e977fe9f142904a14d805 /odoo/fields.py | |
| parent | 9c1ad3604e2cc508f9c8fbda9aaf77b9a8fcb82c (diff) | |
| parent | d7c0c5c127b9bc80a447768370c7915487e7292f (diff) | |
[MERGE] forward port branch 12.0 up to d7c0c5c127b
Diffstat (limited to 'odoo/fields.py')
| -rw-r--r-- | odoo/fields.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/odoo/fields.py b/odoo/fields.py index 50b6f4a0552..f168f315328 100644 --- a/odoo/fields.py +++ b/odoo/fields.py @@ -2233,8 +2233,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)): |
