[MIG] report_xlsx: Migration to 15.0

This commit is contained in:
Joan Mateu Jordi
2021-12-07 12:36:12 +01:00
committed by Dario Del Zozzo
parent 781f58d802
commit ed8a6aaacc
5 changed files with 24 additions and 38 deletions

View File

@@ -35,7 +35,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])