[FIX] Custom field may not be found on the first go

bzr revid: jvo@tinyerp.com-20100906144533-eal9zioe9ea2na73
This commit is contained in:
Jay (OpenERP) 2010-09-06 20:15:33 +05:30
parent 6b2e5f9896
commit d429b331e0
1 changed files with 1 additions and 1 deletions

View File

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