|
@ -37,7 +37,7 @@ class ReportController(ReportController): |
|
|
context.update(data["context"]) |
|
|
context.update(data["context"]) |
|
|
context["report_name"] = reportname |
|
|
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") |
|
|
report_file = context.get("report_file") |
|
|
if not report_file: |
|
|
if not report_file: |
|
|
active_model = context.get("active_model", "export") |
|
|
active_model = context.get("active_model", "export") |
|
@ -52,6 +52,4 @@ class ReportController(ReportController): |
|
|
("Content-Disposition", content_disposition(report_file + ".xlsx")), |
|
|
("Content-Disposition", content_disposition(report_file + ".xlsx")), |
|
|
] |
|
|
] |
|
|
return request.make_response(xlsx, headers=xlsxhttpheaders) |
|
|
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) |