[MIG] report_xlsx: Migration to 17.0

This commit is contained in:
tien-ld
2023-11-22 22:48:48 +07:00
committed by Dario Del Zozzo
parent 4776b1d416
commit 4cccbe9035
15 changed files with 55 additions and 52 deletions

View File

@@ -26,7 +26,7 @@ class ReportAction(models.Model):
.sudo(False)
.create_xlsx_report(docids, data) # noqa
)
if ret and isinstance(ret, (tuple, list)): # data, "xlsx"
if ret and isinstance(ret, (tuple | list)): # data, "xlsx"
report_sudo.save_xlsx_report_attachment(docids, ret[0])
return ret