summaryrefslogtreecommitdiff
path: root/odoo/fields.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2017-12-12 15:35:11 +0100
committerChristophe Simonis <chs@odoo.com>2017-12-12 15:35:11 +0100
commit5701010d0ddbc9fb09ccc9262e83ac3ca6935a4e (patch)
tree4b0b519a12e5149f896e66519ec7c428dd6e6e51 /odoo/fields.py
parent791e0cf47a84d7c3bd4cfb6404144f9aff2ca78c (diff)
parent744c2934b3ad748c41a0b3a97272d38a75b14e76 (diff)
[MERGE] forward port branch saas-14 up to 744c2934b3a
Diffstat (limited to 'odoo/fields.py')
-rw-r--r--odoo/fields.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/odoo/fields.py b/odoo/fields.py
index 3f32f68a765..861eee4132b 100644
--- a/odoo/fields.py
+++ b/odoo/fields.py
@@ -974,11 +974,11 @@ class Field(object):
spec = self.modified_draft(record)
# set value in cache, inverse field, and mark record as dirty
- record._cache[self] = value
+ env.cache[self][record.id] = value
if env.in_onchange:
for invf in record._field_inverses[self]:
invf._update(record[self.name], record)
- record._set_dirty(self.name)
+ env.dirty[record].add(self.name)
# determine more dependent fields, and invalidate them
if self.relational:
@@ -991,7 +991,7 @@ class Field(object):
record.write({self.name: write_value})
# Update the cache unless value contains a new record
if not (self.relational and not all(value)):
- record._cache[self] = value
+ env.cache[self][record.id] = value
############################################################################
#