From 37a5785240072a6f524615a56c9f4edf4e56e4c0 Mon Sep 17 00:00:00 2001 From: Laetitia Gangloff Date: Mon, 15 Jun 2015 14:23:35 +0200 Subject: [PATCH] report_custom_filename : filename is not mandatory --- report_custom_filename/controllers/reports.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/report_custom_filename/controllers/reports.py b/report_custom_filename/controllers/reports.py index 303976db..303ca3c6 100644 --- a/report_custom_filename/controllers/reports.py +++ b/report_custom_filename/controllers/reports.py @@ -37,7 +37,7 @@ class Reports(main.Reports): [('report_name', '=', action['report_name'])], 0, False, False, context) for report in report_xml.read(report_ids, fields=['download_filename']): - if not report['download_filename']: + if not report.get('download_filename'): continue objects = req.session.model(context['active_model'])\ .browse(context['active_ids'])