summaryrefslogtreecommitdiff
path: root/addons/base_sparse_field/models/fields.py
diff options
context:
space:
mode:
authorRaphael Collet <rco@odoo.com>2020-04-02 06:45:54 +0000
committerRaphael Collet <rco@odoo.com>2020-04-03 11:40:27 +0000
commitf694caac416cd66c3878cf6352855cb9765c3b45 (patch)
tree31d0c9e4a2acb830cd9cae253cf1a3a04ec7b326 /addons/base_sparse_field/models/fields.py
parentb491ca0bb37dc3b4eb6366cb7fc7518219a59684 (diff)
[IMP] core: optimize `model._setup_base()`
Simplify the code to retrieve fields on a class. Simplify the class attribute that lists the class' proper fields. Optimize `model._add_inherited_fields()`. Optimize `resolve_mro` by using classes instead of recordsets. This saves 3.5% of the total installation time. X-original-commit: 89ab71905cb6c5d3beda5eac357f8592e31aaef8
Diffstat (limited to 'addons/base_sparse_field/models/fields.py')
0 files changed, 0 insertions, 0 deletions