diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index 9d3993a24c9..7a06bd34f9d 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -1588,7 +1588,7 @@ class Reports(http.Controller): if 'name' not in action: reports = request.session.model('ir.actions.report.xml') res_id = reports.search([('report_name', '=', action['report_name']),], - 0, False, False, context) + context=context) if len(res_id) > 0: file_name = reports.read(res_id[0], ['name'], context)['name'] else: