[FIX] Value

bzr revid: nel@tinyerp.com-20090325131207-x879po8d5wkvlaa2
This commit is contained in:
Najlaâ EL KHAYAT
2009-03-25 14:12:07 +01:00
parent 3d9b92a8ae
commit 2c246ae5f4
+1 -1
View File
@@ -47,7 +47,7 @@ class ir_values(osv.osv):
if self.CONCURRENCY_CHECK_FIELD in ctx:
del ctx[self.CONCURRENCY_CHECK_FIELD]
if not self.browse(cursor, user, id, context=context).object:
value = pickle.dumps(eval(value))
value = pickle.dumps(value)
self.write(cursor, user, id, {name[:-9]: value}, context=ctx)
def onchange_object_id(self, cr, uid, ids, object_id, context={}):