[FIX] res.config.settings: fix method fields_get

bzr revid: rco@openerp.com-20120328111954-cbr4b05z8cuafk9b
This commit is contained in:
Raphael Collet 2012-03-28 13:19:54 +02:00
parent c7663a1f9b
commit b724ca6f11
1 changed files with 1 additions and 1 deletions

View File

@ -514,7 +514,7 @@ class res_config_settings(osv.osv_memory):
res = super(res_config_settings, self).fields_get(cr, uid, allfields, context, write_access)
classified = self._get_classified_fields(cr, uid, context)
for name, module in classified['module']:
if module.state in ('installed', 'to install', 'to upgrade'):
if name in res and module.state in ('installed', 'to install', 'to upgrade'):
res[name]['readonly'] = True
return res