diff options
| author | Martin Trigaux <mat@odoo.com> | 2020-05-19 10:19:45 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2020-05-26 15:50:11 +0200 |
| commit | 4afa747fa1bc99e5626636541a2dabb22c7f22cd (patch) | |
| tree | 4de41548363a800da127e6e988166ad825fcb1e2 /odoo/fields.py | |
| parent | 8f578637076d4b65de222aa092ce738391ce5260 (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/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 d64555e0025..56f58364809 100644 --- a/odoo/fields.py +++ b/odoo/fields.py @@ -571,12 +571,12 @@ class Field(MetaField('DummyField', (object,), {})): # def _default_company_dependent(self, model): - return model.env['ir.property'].get(self.name, self.model_name) + return model.env['ir.property']._get(self.name, self.model_name) def _compute_company_dependent(self, records): # read property as superuser, as the current user may not have access Property = records.env['ir.property'].sudo() - values = Property.get_multi(self.name, self.model_name, records.ids) + values = Property._get_multi(self.name, self.model_name, records.ids) for record in records: record[self.name] = values.get(record.id) @@ -587,7 +587,7 @@ class Field(MetaField('DummyField', (object,), {})): record.id: self.convert_to_write(record[self.name], record) for record in records } - Property.set_multi(self.name, self.model_name, values) + Property._set_multi(self.name, self.model_name, values) def _search_company_dependent(self, records, operator, value): Property = records.env['ir.property'] |
