summaryrefslogtreecommitdiff
path: root/odoo/models.py
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2020-05-19 10:19:45 +0200
committerMartin Trigaux <mat@odoo.com>2020-05-26 15:50:11 +0200
commit4afa747fa1bc99e5626636541a2dabb22c7f22cd (patch)
tree4de41548363a800da127e6e988166ad825fcb1e2 /odoo/models.py
parent8f578637076d4b65de222aa092ce738391ce5260 (diff)
[IMP] *: make ir.property methods private
Should only interact with them via python code in a controlled environment, no direct call with RPC
Diffstat (limited to 'odoo/models.py')
-rw-r--r--odoo/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/models.py b/odoo/models.py
index 8af30b89bb5..f88bcce1dca 100644
--- a/odoo/models.py
+++ b/odoo/models.py
@@ -3705,7 +3705,7 @@ Record ids: %(records)s
if not field:
raise ValueError("Invalid field %r on model %r" % (key, self._name))
if field.company_dependent:
- irprop_def = self.env['ir.property'].get(key, self._name)
+ irprop_def = self.env['ir.property']._get(key, self._name)
cached_def = field.convert_to_cache(irprop_def, self)
cached_val = field.convert_to_cache(val, self)
if cached_val == cached_def: