The _auto_init call in ir.model.fields creation will not
do it because it happens before the insertion of the model
in the registry. It will only work for later addition of
fields.
bzr revid: odo@openerp.com-
20130730114645-185kbupcrbtnv1tf
ctx = dict(context,
field_name=vals['name'],
field_state='manual',
- select=vals.get('select_level', '0'))
+ select=vals.get('select_level', '0'),
+ update_custom_fields=True)
self.pool.get(vals['model'])._auto_init(cr, ctx)
openerp.modules.registry.RegistryManager.signal_registry_change(cr.dbname)
return res