[FIX] Export & Synchronize Translations Corrected

lp bug: https://launchpad.net/bugs/658993 fixed

bzr revid: ach@tinyerp.com-20101012120908-1u5n29r040drhhzs
This commit is contained in:
Anup (OpenERP)
2010-10-12 17:39:08 +05:30
parent 6a2408f6cf
commit e1f829b0eb
+1 -1
View File
@@ -605,7 +605,7 @@ def trans_generate(lang, modules, dbname=None):
if fname and obj.report_type in ('pdf', 'xsl'):
try:
d = etree.parse(tools.file_open(fname))
for t in parse_func(d):
for t in parse_func(d.iter()):
push_translation(module, report_type, name, 0, t)
except (IOError, etree.XMLSyntaxError):
logging.getLogger("i18n").exception("couldn't export translation for report %s %s %s", name, report_type, fname)