From bbcbe001236955804bfe152fe35281c26c502b33 Mon Sep 17 00:00:00 2001 From: "Jay (Open ERP)" Date: Thu, 23 Jul 2009 20:08:03 +0530 Subject: [PATCH] [FIX] Importation problem corrected for unicode. bzr revid: jvo@tinyerp.com-20090723143803-se9mo3725bbrmo1o --- bin/osv/orm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/osv/orm.py b/bin/osv/orm.py index ca5dbf471eb..642ccaf600f 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -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: