summaryrefslogtreecommitdiff
path: root/bin/report/interface.py
diff options
context:
space:
mode:
authorP. Christeas <p_christ@hol.gr>2010-12-14 18:28:26 +0200
committerP. Christeas <p_christ@hol.gr>2010-12-14 18:28:26 +0200
commit5c6bd686abf73b4d8deb2ce2646d0f47dbdb237d (patch)
tree93faf023448ceffc2dc17988c58b7a51e69b395f /bin/report/interface.py
parent10c0a345e84963e0039e7da56438893a73a008f7 (diff)
reports: fix some default args, import message, empty translations
bzr revid: p_christ@hol.gr-20101214162826-79ppx7qw23ag3qx0
Diffstat (limited to 'bin/report/interface.py')
-rw-r--r--bin/report/interface.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/report/interface.py b/bin/report/interface.py
index ec9ed7ddef1..16dfafe0a18 100644
--- a/bin/report/interface.py
+++ b/bin/report/interface.py
@@ -164,6 +164,8 @@ class report_rml(report_int):
def translate(doc, lang):
for node in doc.xpath('//*[@t]'):
+ if not node.text:
+ continue
translation = ir_translation_obj._get_source(cr, uid, self.name2, 'xsl', lang, node.text)
if translation:
node.text = translation