[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user