From f9f7669e601fd9b9824d1c9c4c49cb1ff1894645 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Tue, 15 Dec 2015 11:43:39 +0100 Subject: [PATCH] [FIX] pass context as keyword argument to search() closes #10080 --- addons/web/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: