[FIX] orm.fields_get: typo in last refactoring

bzr revid: odo@openerp.com-20110619115410-bdmd4zcm3o69515o
This commit is contained in:
Olivier Dony
2011-06-19 13:54:10 +02:00
parent 4f6bee5bf7
commit 6df3bc8b67
+2 -2
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')