diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-03-09 16:25:58 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-03-09 16:25:58 +0100 |
| commit | 0f57bdba72b592ca097d4cd3da99a75883d8c623 (patch) | |
| tree | 94eef0c9aaf885c7f717bab5e468ca72b59a219d /odoo/fields.py | |
| parent | 35f0797002e44ce5673e9fab63710d2764329694 (diff) | |
| parent | 42659dc70c2b9b124e7e4fdc0449f660c3de5c76 (diff) | |
[MERGE] forward port branch saas-11.2 up to 42659dc70c2
Diffstat (limited to 'odoo/fields.py')
| -rw-r--r-- | odoo/fields.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/fields.py b/odoo/fields.py index 4050c07224c..46898e3fcd4 100644 --- a/odoo/fields.py +++ b/odoo/fields.py @@ -566,7 +566,7 @@ class Field(MetaField('DummyField', (object,), {})): # when related_sudo, bypass access rights checks when reading values others = records.sudo() if self.related_sudo else records # copy the cache of draft records into others' cache - if records.env != others.env: + if records.env.in_onchange and records.env != others.env: copy_cache(records - records.filtered('id'), others.env) # # Traverse fields one by one for all records, in order to take advantage |
