[IMP] views don't need to include the state field anymore to be state aware
bzr revid: christophe@tinyerp.com-20081202183821-iodzmaanf3ib0asb
This commit is contained in:
parent
49c441b3a4
commit
a5e5b5b8fc
|
@ -847,6 +847,10 @@ class orm_template(object):
|
|||
if childs:
|
||||
for f in node.childNodes:
|
||||
fields.update(self.__view_look_dom(cr, user, f, context))
|
||||
|
||||
if ('state' not in fields) and (('state' in self._columns) or ('state' in self._inherit_fields)):
|
||||
fields['state'] = {}
|
||||
|
||||
return fields
|
||||
|
||||
def __view_look_dom_arch(self, cr, user, node, context=None):
|
||||
|
|
Loading…
Reference in New Issue