[14.0][MIG] report_xlsx_helper

This commit is contained in:
Saran440
2020-11-19 15:39:55 +07:00
parent f4edd69959
commit e928294e78
7 changed files with 15 additions and 8 deletions

View File

@@ -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)