[REM] redundant code: a field of type one2many will always have _type one2many

bzr revid: xmo@openerp.com-20120723135113-6x3s5lmljk8cdpf0
This commit is contained in:
Xavier Morel
2012-07-23 15:51:13 +02:00
parent 8bdd730090
commit 3b5890d79b
+1 -1
View File
@@ -767,7 +767,7 @@ class BaseModel(object):
'required': (f.required and 1) or 0,
'selectable': (f.selectable and 1) or 0,
'translate': (f.translate and 1) or 0,
'relation_field': (f._type=='one2many' and isinstance(f, fields.one2many)) and f._fields_id or '',
'relation_field': f._fields_id if isinstance(f, fields.one2many) else '',
'serialization_field_id': None,
}
if getattr(f, 'serialization_field', None):