From ce0dcac16160aea62c7e422b0926109eed189999 Mon Sep 17 00:00:00 2001 From: Simon Lejeune Date: Fri, 12 Sep 2014 12:29:29 +0200 Subject: [PATCH] [FIX] report: /report/download route should not be website enabled There's a little magic inside the website enabled route modifying the context's lang, thus breaking the logic to print the report in the current user's lang. The direct route to display the report should stay in website_enabled mode, as it allows to switch lang, use the website translator and so on. --- addons/report/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/report/controllers/main.py b/addons/report/controllers/main.py index cdb38d4a115..5f6df9996bf 100644 --- a/addons/report/controllers/main.py +++ b/addons/report/controllers/main.py @@ -93,7 +93,7 @@ class ReportController(Controller): return request.make_response(barcode, headers=[('Content-Type', 'image/png')]) - @route(['/report/download'], type='http', auth="user", website=True) + @route(['/report/download'], type='http', auth="user") def report_download(self, data, token): """This function is used by 'qwebactionmanager.js' in order to trigger the download of a pdf/controller report.