[FIX] Encoding error corrected for client_action(ir_values-tree view)

lp bug: https://launchpad.net/bugs/435933 fixed

bzr revid: jvo@tinyerp.com-20091202120808-xdqj1iie1wvqd2zw
This commit is contained in:
Jay (Open ERP)
2009-12-02 17:38:08 +05:30
parent 9bb02a1bb0
commit 2eb649ebc2
+2 -1
View File
@@ -24,6 +24,7 @@ from osv import osv,fields
from osv.orm import except_orm
import pickle
from tools.translate import _
import tools
class ir_values(osv.osv):
_name = 'ir.values'
@@ -235,7 +236,7 @@ class ir_values(osv.osv):
#ir_del(cr, uid, x[0])
return False
else:
datas = pickle.loads(str(x[2]))
datas = pickle.loads(tools.ustr(x[2]))
if meta:
meta2 = pickle.loads(x[4])
return (x[0],x[1],datas,meta2)