mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[14.0][MIG] report_xlsx_helper
This commit is contained in:
@@ -37,7 +37,7 @@ class ReportController(ReportController):
|
||||
context.update(data["context"])
|
||||
context["report_name"] = reportname
|
||||
|
||||
xlsx = report.with_context(context).render_xlsx(docids, data=data)[0]
|
||||
xlsx = report.with_context(context)._render_xlsx(docids, data=data)[0]
|
||||
report_file = context.get("report_file")
|
||||
if not report_file:
|
||||
active_model = context.get("active_model", "export")
|
||||
@@ -52,6 +52,4 @@ class ReportController(ReportController):
|
||||
("Content-Disposition", content_disposition(report_file + ".xlsx")),
|
||||
]
|
||||
return request.make_response(xlsx, headers=xlsxhttpheaders)
|
||||
return super(ReportController, self).report_routes(
|
||||
reportname, docids, converter, **data
|
||||
)
|
||||
return super().report_routes(reportname, docids, converter, **data)
|
||||
|
||||
Reference in New Issue
Block a user