mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[FIX] report_xlsx: add token in report_download() controller
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user