summaryrefslogtreecommitdiff
path: root/addons/base_module_record
diff options
context:
space:
mode:
authorhusen daudi <hda@hda>2009-07-16 13:06:30 +0530
committerhusen daudi <hda@hda>2009-07-16 13:06:30 +0530
commit8a52ef63a98d4a8cf96f26622a9c824eaeaf5dc9 (patch)
treeb140756518503d5dd3e2a4dcbffdbb258a7a767d /addons/base_module_record
parent95fd0326727469db29ca7b696986f9d18775ba22 (diff)
[FIX] module:base_module_record fixed unicode string problem
bzr revid: hda@hda-20090716073630-d3a51z49njxedbgs
Diffstat (limited to 'addons/base_module_record')
-rw-r--r--addons/base_module_record/base_module_record.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/base_module_record/base_module_record.py b/addons/base_module_record/base_module_record.py
index 9a2a07caaac..719a136e5f7 100644
--- a/addons/base_module_record/base_module_record.py
+++ b/addons/base_module_record/base_module_record.py
@@ -25,6 +25,7 @@ from osv import fields,osv
import netsvc
import pooler
import string
+import tools
objects_proxy = netsvc.SERVICES['object'].__class__
@@ -174,7 +175,7 @@ class base_module_record(osv.osv):
val = str(val)
val = val and ('"""%s"""' % val.replace('\\', '\\\\').replace('"', '\"')) or 'False'
- field.setAttribute(u"eval", val.decode('utf-8'))
+ field.setAttribute(u"eval", tools.ustr(val))
record.appendChild(field)
return record_list, noupdate