From: vth Date: Mon, 25 Oct 2010 06:27:48 +0000 (+0530) Subject: [FIX] account: journal items Unicode strings with encoding declaration are not supported X-Git-Tag: 6.0.0-rc2-addons~127^2~307 X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=e0c99e20f61553d68861fb44121d7e4ed46ff739;p=odoo%2Fodoo.git [FIX] account: journal items Unicode strings with encoding declaration are not supported bzr revid: vth@tinyerp.com-20101025062748-2yr1ded7x50k1c4w --- diff --git a/addons/account/wizard/account_move_journal.py b/addons/account/wizard/account_move_journal.py index 5756fed..e65b9b8 100644 --- a/addons/account/wizard/account_move_journal.py +++ b/addons/account/wizard/account_move_journal.py @@ -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): """ % (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