From 263cefffbec7b1a718a259f0499a29928deec928 Mon Sep 17 00:00:00 2001 From: FernandoRomera Date: Wed, 20 Dec 2023 08:12:02 +0100 Subject: [PATCH] [17.0][MIG] report_xlsx_helper: Migration to 17.0 --- report_xlsx_helper/__manifest__.py | 2 +- report_xlsx_helper/report/report_xlsx_abstract.py | 2 +- report_xlsx_helper/tests/test_report_xlsx_helper.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/report_xlsx_helper/__manifest__.py b/report_xlsx_helper/__manifest__.py index 2a75e33b7..e465ed033 100644 --- a/report_xlsx_helper/__manifest__.py +++ b/report_xlsx_helper/__manifest__.py @@ -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", diff --git a/report_xlsx_helper/report/report_xlsx_abstract.py b/report_xlsx_helper/report/report_xlsx_abstract.py index 1ea2ec556..314a8b88a 100644 --- a/report_xlsx_helper/report/report_xlsx_abstract.py +++ b/report_xlsx_helper/report/report_xlsx_abstract.py @@ -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" diff --git a/report_xlsx_helper/tests/test_report_xlsx_helper.py b/report_xlsx_helper/tests/test_report_xlsx_helper.py index 76eb71643..849e693c6 100644 --- a/report_xlsx_helper/tests/test_report_xlsx_helper.py +++ b/report_xlsx_helper/tests/test_report_xlsx_helper.py @@ -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")