From d429b331e067d9e8f81a8499812ca60052ec75d5 Mon Sep 17 00:00:00 2001 From: "Jay (OpenERP)" Date: Mon, 6 Sep 2010 20:15:33 +0530 Subject: [PATCH] [FIX] Custom field may not be found on the first go bzr revid: jvo@tinyerp.com-20100906144533-eal9zioe9ea2na73 --- bin/osv/orm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/osv/orm.py b/bin/osv/orm.py index 6f73f821f8e..3421190fc5f 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -443,7 +443,7 @@ class orm_template(object): if context.get('field_name', '') == k: vals['select_level'] = context.get('select', '0') #setting value to let the problem NOT occur next time - else: + elif k in cols: vals['select_level'] = cols[k]['select_level'] if k not in cols: