-
- Downloads
[FIX] ir_model: invalidate cache when adding new fields
When a new ir.model.field is created, add the new field in the fields_by_model (cache of custom fields). This is required as the __init__ method would not retrieve the new field if fields_by_model is already set. Otherwise, the _columns would not contain the new fields and we could not access it without restarting the server (e.g. the installation of a module adds ir.model.fields and use it in the a view.
Showing
- openerp/addons/base/ir/ir_model.py 4 additions, 0 deletionsopenerp/addons/base/ir/ir_model.py
- openerp/addons/base/tests/__init__.py 2 additions, 0 deletionsopenerp/addons/base/tests/__init__.py
- openerp/addons/base/tests/test_ir_model.py 44 additions, 0 deletionsopenerp/addons/base/tests/test_ir_model.py
Loading
Please register or sign in to comment