Fix import csv for selection field when keys are integer
bzr revid: ced-08a68c2e5a2be6621617941a1fd473a3f274b7bd
This commit is contained in:
parent
f1540cd62e
commit
2040798080
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue