From ec87cbb8dbd8260c76063c5a480d19e253a461b1 Mon Sep 17 00:00:00 2001 From: gaikaz Date: Wed, 3 Mar 2021 12:01:43 +0200 Subject: [PATCH] [FIX] report_py3o: add context to /report/download Odoo did this change in [this commit](https://github.com/odoo/odoo/commit/4c9624db9d4656457f4100ee2e848f0f81d264a9) --- report_py3o/controllers/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/report_py3o/controllers/main.py b/report_py3o/controllers/main.py index ac4decaf6..85136e0df 100644 --- a/report_py3o/controllers/main.py +++ b/report_py3o/controllers/main.py @@ -56,7 +56,7 @@ class ReportController(main.ReportController): return request.make_response(res, headers=http_headers) @route() - def report_download(self, data, token): + def report_download(self, data, token, context=None): """This function is used by 'qwebactionmanager.js' in order to trigger the download of a py3o/controller report. @@ -67,7 +67,7 @@ class ReportController(main.ReportController): requestcontent = json.loads(data) url, report_type = requestcontent[0], requestcontent[1] if "py3o" not in report_type: - return super(ReportController, self).report_download(data, token) + return super(ReportController, self).report_download(data, token, context) try: reportname = url.split("/report/py3o/")[1].split("?")[0] docids = None