diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-12-12 16:15:04 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-12-12 16:15:04 +0100 |
| commit | a2ea4ba095cd82adae4cac917aa2485d30c8071e (patch) | |
| tree | c98812e852122b4197c2995b666935115929347e /odoo/fields.py | |
| parent | d0d9196da406baba37d634dd78ac0e12e83f754d (diff) | |
| parent | 5701010d0ddbc9fb09ccc9262e83ac3ca6935a4e (diff) | |
[MERGE] forward port branch saas-15 up to 5701010d0dd
Diffstat (limited to 'odoo/fields.py')
| -rw-r--r-- | odoo/fields.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/odoo/fields.py b/odoo/fields.py index 6e0a38370d3..db1bdd183c1 100644 --- a/odoo/fields.py +++ b/odoo/fields.py @@ -977,11 +977,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: @@ -994,7 +994,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 ############################################################################ # |
