From c1955e26c5b1922b415c6d96658e1ae0b83b8ed4 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Wed, 14 Dec 2022 13:10:59 +0000 Subject: [PATCH] [FIX] report_xlsx: add token in report_download() controller --- report_xlsx/controllers/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/report_xlsx/controllers/main.py b/report_xlsx/controllers/main.py index 0b424f1ec..9b9eff5e3 100644 --- a/report_xlsx/controllers/main.py +++ b/report_xlsx/controllers/main.py @@ -49,7 +49,7 @@ class ReportController(ReportController): return super().report_routes(reportname, docids, converter, **data) @route() - def report_download(self, data, context=None): + def report_download(self, data, context=None, token=None): requestcontent = json.loads(data) url, report_type = requestcontent[0], requestcontent[1] try: @@ -96,7 +96,7 @@ class ReportController(ReportController): ) return response else: - return super().report_download(data, context) + return super().report_download(data, context=context, token=token) except Exception as e: _logger.exception("Error while generating report %s", reportname) se = _serialize_exception(e)