[FIX] orm.fields_get: typo in last refactoring

bzr revid: odo@openerp.com-20110619115701-q06la7l6jhmihdk6
This commit is contained in:
Olivier Dony 2011-06-19 13:57:01 +02:00
parent bad8913066
commit 36d98cb14f
1 changed files with 2 additions and 2 deletions

View File

@ -1286,8 +1286,8 @@ class orm_template(object):
res[f] = fields.field_to_dict(self, cr, user, context, field)
if not write_access:
res['readonly'] = True
res['states'] = {}
res[f]['readonly'] = True
res[f]['states'] = {}
if hasattr(res[f], 'string'):
res_trans = translation_obj._get_source(cr, user, self._name + ',' + f, 'field', context.get('lang', False) or 'en_US')