[FIX] account: journal items Unicode strings with encoding declaration are not supported

bzr revid: vth@tinyerp.com-20101025062748-2yr1ded7x50k1c4w
This commit is contained in:
vth 2010-10-25 11:57:48 +05:30
parent 62bc7b96e8
commit e0c99e20f6
1 changed files with 5 additions and 1 deletions

View 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