Browse Source

Merge pull request #15 from acsone/7.0-fix_report_custom_filename-lga

report_custom_filename : filename is not mandatory
pull/16/head
Pedro M. Baeza 10 years ago
parent
commit
deab1e4611
  1. 2
      report_custom_filename/controllers/reports.py

2
report_custom_filename/controllers/reports.py

@ -37,7 +37,7 @@ class Reports(main.Reports):
[('report_name', '=', action['report_name'])], [('report_name', '=', action['report_name'])],
0, False, False, context) 0, False, False, context)
for report in report_xml.read(report_ids, fields=['download_filename']): for report in report_xml.read(report_ids, fields=['download_filename']):
if not report['download_filename']:
if not report.get('download_filename'):
continue continue
objects = req.session.model(context['active_model'])\ objects = req.session.model(context['active_model'])\
.browse(context['active_ids']) .browse(context['active_ids'])

Loading…
Cancel
Save