Fix SQL if report.module = False

This commit is contained in:
Cédric Krier committed 2009-02-26 01:10:07 +01:00
1 parent c5e6230ea2
commit 9d890eeecb
1 file changed
+1 -1
+1 -1
View File
@@ -617,7 +617,7 @@ class ReportTranslationSet(Wizard):
'AND type = %s ' \
'AND name = %s ' \
'AND module = %s',
('en_US', 'odt', report.report_name, report.module))
('en_US', 'odt', report.report_name, report.module or ''))
trans_reports = {}
for trans in cursor.dictfetchall():
trans_reports[trans['src']] = trans