diff options
Diffstat (limited to 'odoo/fields.py')
| -rw-r--r-- | odoo/fields.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/odoo/fields.py b/odoo/fields.py index 31d67bc6556..4695eb2c43d 100644 --- a/odoo/fields.py +++ b/odoo/fields.py @@ -3173,6 +3173,11 @@ class One2many(_RelationalMulti): if self.store: inverse = self.inverse_name + # make sure self's inverse is in cache + inverse_field = comodel._fields[inverse] + for record in records: + cache.update(record[self.name], inverse_field, itertools.repeat(record.id)) + for recs, commands in records_commands_list: for command in commands: if command[0] == 0: |
