diff options
| author | Raphael Collet <rco@odoo.com> | 2019-04-24 10:15:14 +0000 |
|---|---|---|
| committer | Raphael Collet <rco@odoo.com> | 2019-04-30 07:54:49 +0000 |
| commit | f44571f550dfa34ddb1a62bbe03e78a4dadf8eda (patch) | |
| tree | 6c62f3f2ba05952fe75eb87c4dbdb543d66a3e42 /odoo/fields.py | |
| parent | 63bc6013ab30acfee7fdedcd396ad3984543b99e (diff) | |
[IMP] base: remove `mapped()` where not necessary
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 6017f12f271..00a204c9404 100644 --- a/odoo/fields.py +++ b/odoo/fields.py @@ -2365,7 +2365,7 @@ class _RelationalMulti(_Relational): super(_RelationalMulti, self)._compute_related(records) if self.related_sudo: # determine which records in the relation are actually accessible - target = records.mapped(self.name) + target = records[self.name] target_ids = set(target.search([('id', 'in', target.ids)]).ids) accessible = lambda target: target.id in target_ids # filter values to keep the accessible records only |
