[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:
Christophe Simonis 2008-12-02 19:38:21 +01:00
parent 49c441b3a4
commit a5e5b5b8fc
1 changed files with 4 additions and 0 deletions

View File

@ -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):