[Under-the-carpet-FIX] Silently ignore missing fields in views.

This solved the problem where no CRM lines were found in some
board. Since the board would be launched on startup, client couldn't
login at all.

bzr revid: p_christ@hol.gr-20090116085426-f5yf8k1hg6hbq39x
This commit is contained in:
P. Christeas
2009-01-16 10:54:26 +02:00
parent 114872c3d7
commit 69bdb830a4
+2 -1
View File
@@ -894,7 +894,8 @@ class orm_template(object):
arch = node.toxml(encoding="utf-8").replace('\t', '')
fields = self.fields_get(cr, user, fields_def.keys(), context)
for field in fields:
fields[field].update(fields_def[field])
if field in fields_def:
fields[field].update(fields_def[field])
return arch, fields
def __get_default_calendar_view(self):