summaryrefslogtreecommitdiff
path: root/odoo/fields.py
diff options
context:
space:
mode:
authorRaphael Collet <rco@odoo.com>2019-08-23 09:08:42 +0000
committerRaphael Collet <rco@odoo.com>2019-08-23 10:00:12 +0000
commite388efd05941d50874c9f7ac1ca1226a4497e9f2 (patch)
treec0dddcdf9d40ee8b7b49ef2d6f78678c99766b4f /odoo/fields.py
parentec3c76dc77b5239cb61f2f3dc64f2fd9bce28d48 (diff)
[FIX] api: share `protected` among environments
If a field is protected against recomputation, it must be protected in *all* environments.
Diffstat (limited to 'odoo/fields.py')
-rw-r--r--odoo/fields.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/odoo/fields.py b/odoo/fields.py
index a9cab8ae48a..183d2318e81 100644
--- a/odoo/fields.py
+++ b/odoo/fields.py
@@ -2569,9 +2569,6 @@ class _RelationalMulti(_Relational):
cache.set(record, self, val)
else:
result = False
- # DEEP FUCKING HACK TO FIX SOMEDAY: recs.env is different from
- # records.env; we must trigger modifications in the original env
- recs.env._protected = records.env._protected
recs.modified([self.name])
return result