[FIX] Pickling issue solved with ir_values (get method)
lp bug: https://launchpad.net/bugs/491462 fixed bzr revid: jvo@tinyerp.com-20091203070421-0jt19rjqcqto7dlh
This commit is contained in:
@@ -24,7 +24,6 @@ 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'
|
||||
@@ -236,7 +235,7 @@ class ir_values(osv.osv):
|
||||
#ir_del(cr, uid, x[0])
|
||||
return False
|
||||
else:
|
||||
datas = pickle.loads(tools.ustr(x[2]))
|
||||
datas = pickle.loads(str(x[2].encode('utf-8')))
|
||||
if meta:
|
||||
meta2 = pickle.loads(x[4])
|
||||
return (x[0],x[1],datas,meta2)
|
||||
|
||||
Reference in New Issue
Block a user