[MIG] report_xlsx: Migration to 14.0

This commit is contained in:
Alex Cuellar
2020-10-19 15:42:11 -05:00
committed by Dario Del Zozzo
parent 82d14e805e
commit 8d4482017b
6 changed files with 23 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])