[FIX] Importation problem corrected for unicode.
bzr revid: jvo@tinyerp.com-20090723143803-se9mo3725bbrmo1o
This commit is contained in:
+1
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user