Merge pull request #36 from StefanRijnhart/8.0-report_custom_filename_fix_api_detection

[FIX] Don't confuse API detection
pull/40/head
Pedro M. Baeza 2015-12-16 17:02:15 +01:00
commit 16a1fd6d9d
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class Reports(main.Reports):
report_xml = http.request.session.model('ir.actions.report.xml')
report_ids = report_xml.search(
[('report_name', '=', action['report_name'])],
0, False, False, context)
0, False, False, context=context)
for report in report_xml.browse(report_ids):
if not report.download_filename:
continue