projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62bc7b9
)
[FIX] account: journal items Unicode strings with encoding declaration are not supported
author
vth
<vth@tinyerp.com>
Mon, 25 Oct 2010 06:27:48 +0000
(11:57 +0530)
committer
vth
<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
patch
|
blob
|
history
diff --git
a/addons/account/wizard/account_move_journal.py
b/addons/account/wizard/account_move_journal.py
index
5756fed
..
e65b9b8
100644
(file)
--- 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):
</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