[MIG] report_xlsx: Migration to 14.0

This commit is contained in:
Alex Cuellar
2020-10-19 15:42:11 -05:00
parent 155d1e07cd
commit 5231d53a21
7 changed files with 26 additions and 21 deletions

View File

@@ -28,7 +28,7 @@ class ReportController(report.ReportController):
if data["context"].get("lang"):
del data["context"]["lang"]
context.update(data["context"])
xlsx = report.with_context(context).render_xlsx(docids, data=data)[0]
xlsx = report.with_context(context)._render_xlsx(docids, data=data)[0]
report_name = report.report_file
if report.print_report_name and not len(docids) > 1:
obj = request.env[report.model].browse(docids[0])