[MERGE] orm: transfer the field to modifiers if there is really a field. There is no field for e.g. "id".
lp bug: https://launchpad.net/bugs/815903 fixed bzr revid: vmt@openerp.com-20110729145949-1a3oodfrt9soqwih
This commit is contained in:
+4
-2
@@ -1555,8 +1555,10 @@ class orm_template(object):
|
||||
attrs['selection'].append((False, ''))
|
||||
fields[node.get('name')] = attrs
|
||||
|
||||
field = model_fields[node.get('name')]
|
||||
transfer_field_to_modifiers(field, modifiers)
|
||||
field = model_fields.get(node.get('name'))
|
||||
if field:
|
||||
transfer_field_to_modifiers(field, modifiers)
|
||||
|
||||
|
||||
elif node.tag in ('form', 'tree'):
|
||||
result = self.view_header_get(cr, user, False, node.tag, context)
|
||||
|
||||
Reference in New Issue
Block a user