[FIX] registry: recompute `pure_function_fields` after every setup

The lazy property `pure_function_fields` was not invalidated upon every setup
of models, and hence could contain old instances of fields.  As every model
setup re-creates instances of fields, the property has to be recomputed.
Raphael Collet 2015-05-05 14:29:07 +02:00
parent a939a272ef
commit 3e497ea35f
1 changed files with 2 additions and 0 deletions

View File

@ -173,6 +173,8 @@ class Registry(Mapping):
:param partial: ``True`` if all models have not been loaded yet.
# load custom models
ir_model = self['ir.model']
cr.execute('select model from ir_model where state=%s', ('manual',))