Fix import csv for selection field when keys are integer

bzr revid: ced-08a68c2e5a2be6621617941a1fd473a3f274b7bd
This commit is contained in:
ced 2007-10-24 13:29:25 +00:00
parent f1540cd62e
commit 2040798080
1 changed files with 1 additions and 1 deletions

View File

@ -662,7 +662,7 @@ class orm(object):
sel = fields_def[field[len(prefix)]]['selection'](self,
cr, uid, context)
for key, val in sel:
if key == line[i]:
if str(key) == line[i]:
res = key
if line[i] and not res:
logger.notifyChannel("import", netsvc.LOG_WARNING,