[17.0][MIG] report_xlsx_helper: Migration to 17.0

This commit is contained in:
FernandoRomera
2023-12-20 08:12:02 +01:00
committed by Alexis de Lattre
parent fa7d3d3f62
commit 263cefffbe
3 changed files with 3 additions and 3 deletions

View File

@@ -6,7 +6,7 @@
"author": "Noviat, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/reporting-engine",
"category": "Reporting",
"version": "16.0.1.0.0",
"version": "17.0.1.0.0",
"license": "AGPL-3",
"depends": ["report_xlsx"],
"development_status": "Mature",

View File

@@ -698,7 +698,7 @@ class ReportXlsxAbstract(models.AbstractModel):
cell_type = "boolean"
elif isinstance(cell_value, str):
cell_type = "string"
elif isinstance(cell_value, (int, float)):
elif isinstance(cell_value, int | float):
cell_type = "number"
elif isinstance(cell_value, datetime):
cell_type = "datetime"

View File

@@ -8,7 +8,7 @@ from odoo.tests.common import TransactionCase
class TestReportXlsxHelper(TransactionCase):
def setUp(self):
super(TestReportXlsxHelper, self).setUp()
super().setUp()
today = date.today()
p1 = self.env.ref("base.res_partner_1")
p2 = self.env.ref("base.res_partner_2")