Fixed xml dom problem in export translation.

bzr revid: hda@tinyerp.com-20091117124548-1g1jgzkr3co90ssh
This commit is contained in:
HDA (OpenERP) 2009-11-17 18:15:48 +05:30
parent b6577e3e5a
commit 3cb58ecdc3
1 changed files with 2 additions and 2 deletions

View File

@ -471,8 +471,8 @@ def trans_generate(lang, modules, dbname=None):
# export arch
arch = result['arch']
if arch and not isinstance(arch, UpdateableStr):
d = xml.dom.minidom.parseString(arch)
for t in trans_parse_view(d.documentElement):
d = etree.XML(arch)
for t in trans_parse_view(d):
push_translation(module, 'wizard_view', name, 0, t)
# export button labels