[FIX] account: journal items Unicode strings with encoding declaration are not supported
authorvth <vth@tinyerp.com>
Mon, 25 Oct 2010 06:27:48 +0000 (11:57 +0530)
committervth <vth@tinyerp.com>
Mon, 25 Oct 2010 06:27:48 +0000 (11:57 +0530)
bzr revid: vth@tinyerp.com-20101025062748-2yr1ded7x50k1c4w

addons/account/wizard/account_move_journal.py

index 5756fed..e65b9b8 100644 (file)
@@ -22,6 +22,7 @@
 from osv import osv
 from tools.translate import _
 import tools
+from lxml import etree
 
 class account_move_journal(osv.osv_memory):
     _name = "account.move.journal"
@@ -103,8 +104,11 @@ class account_move_journal(osv.osv_memory):
             </group>
         </form>""" % (tools.ustr(journal), tools.ustr(period))
 
+        view = etree.fromstring(view.encode('utf8'))
+        xarch, xfields = self._view_look_dom_arch(cr, uid, view, view_id, context=context)
+        view = xarch
         res.update({
-            'arch':view
+            'arch': view
         })
         return res