From 69bdb830a49c022776ea49b1f1acbd4a18b8ac88 Mon Sep 17 00:00:00 2001 From: "P. Christeas" Date: Fri, 16 Jan 2009 10:54:26 +0200 Subject: [PATCH] [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 --- bin/osv/orm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/osv/orm.py b/bin/osv/orm.py index ffe808b639b..58467e83343 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -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):