From 9d890eeecb9fb642f3ea346e395d9943de716256 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 26 Feb 2009 01:10:07 +0100 Subject: [PATCH] Fix SQL if report.module = False --- trytond/ir/translation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/ir/translation.py b/trytond/ir/translation.py index e0f54bd5de..23f4560b07 100644 --- a/trytond/ir/translation.py +++ b/trytond/ir/translation.py @@ -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