mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[17.0][MIG] report_xlsx_helper: Migration to 17.0
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user