[FIX] account: journal items Unicode strings with encoding declaration are not supported
bzr revid: vth@tinyerp.com-20101025062748-2yr1ded7x50k1c4w
This commit is contained in:
parent
62bc7b96e8
commit
e0c99e20f6
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue