lp bug: https://launchpad.net/bugs/415257 fixed
lp bug: https://launchpad.net/bugs/406945 fixed
bzr revid: christophe@tinyerp.com-
20090818154334-blcft3nkwidckjz3
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 bool(line[i])
+ res = line[i].lower() not in ('0', 'false', 'off')
elif fields_def[field[len(prefix)]]['type'] == 'float':
res = line[i] and float(line[i])
elif fields_def[field[len(prefix)]]['type'] == 'selection':