[FIX]Importation problem for bool fields corrected

lp bug: https://launchpad.net/bugs/406945 fixed

bzr revid: jvo@tinyerp.com-20090803132703-kqcufqby9uwhwvvm
This commit is contained in:
RPA(OpenERP) 2009-08-03 18:57:03 +05:30 committed by Jay (Open ERP)
parent adddd25799
commit 885fef5ab6
1 changed files with 1 additions and 1 deletions

View File

@ -662,7 +662,7 @@ class orm_template(object):
if fields_def[field[len(prefix)]]['type'] == 'integer':
res = line[i] and int(line[i])
elif fields_def[field[len(prefix)]]['type'] == 'boolean':
res = line[i] and eval(line[i])
res = line[i] and bool(line[i])
elif fields_def[field[len(prefix)]]['type'] == 'float':
res = line[i] and float(line[i])
elif fields_def[field[len(prefix)]]['type'] == 'selection':