[FIX] Importation problem corrected for unicode.

bzr revid: jvo@tinyerp.com-20090723143803-se9mo3725bbrmo1o
This commit is contained in:
Jay (Open ERP)
2009-07-23 20:08:03 +05:30
parent 1ae75fab0d
commit bbcbe00123
+1 -1
View File
@@ -670,7 +670,7 @@ class orm_template(object):
sel = fields_def[field[len(prefix)]]['selection'](self,
cr, uid, context)
for key, val in sel:
if line[i] in [str(key),str(val)]: #Acepting key or value for selection field
if line[i] in [tools.ustr(key),tools.ustr(val)]: #Acepting key or value for selection field
res = key
break
if line[i] and not res: