[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:
parent
adddd25799
commit
885fef5ab6
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue