diff options
| author | Denis Ledoux <dle@odoo.com> | 2019-02-04 14:02:54 +0000 |
|---|---|---|
| committer | Raphael Collet <rco@odoo.com> | 2019-02-11 15:45:57 +0000 |
| commit | 681ff1aec11d7c74699ebea8604bdce69d60737f (patch) | |
| tree | 616c4f171f1f9690dd6944fc81e1d1898f47d626 /addons/web/static/src/js/views/basic | |
| parent | 368751b9389ea652cffc7864adef66aac59986d9 (diff) | |
[IMP] fields: faster convert_to_record for many2one fields
Use `env.registry` instead of `env` to get the comodel as a class instead of an
instance, which saves one call to `_browse` each time we access a relational
field. This saves time because of the cost of `object.__new__` and prefetch
update in `_browse`.
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions
