odoo/openerp/modules
Raphael Collet e038fec696 [IMP] models: improve performance of _setup_fields()
There was an issue in _setup_fields(): the method invokes _inherits_reload(),
which recomputes inherited fields, and invokes itself recursively on children
models.  This may be problematic if the children models have already been set
up.

This optimization avoids recursive calls of method _inherits_reload().  In
_setup_fields(), first all parent models are set up, then their fields are
inspected to determine inherited fields, and their setup is done.  This scheme
guarantees that inherited fields are computed once per model.
2014-11-13 14:54:04 +01:00
..
__init__.py new test execution engine 2014-02-09 01:40:05 +01:00
db.py [FIX] module: do not recreate categories when updating modules 2012-11-28 19:37:01 +01:00
graph.py [FIX] [CLEAN] Various: fixed / cleaned use of dict.fromkeys. 2014-09-18 11:18:30 +02:00
loading.py [FIX] api: clear environments on module installation 2014-10-02 17:46:25 +02:00
migration.py [FIX] migration: test if package is installed using its state. 2014-10-07 14:57:26 +02:00
module.py [IMP] modules: add support for loading module description from README.{md,rst,txt} 2014-09-12 18:31:32 +02:00
registry.py [IMP] models: improve performance of _setup_fields() 2014-11-13 14:54:04 +01:00