[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:
+2
-1
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user