From 6a729b3f13cbc0a1fbc34029670138cb7a261c6d Mon Sep 17 00:00:00 2001 From: Brice bib Bartoletti Date: Wed, 25 Oct 2023 16:54:20 +0200 Subject: [PATCH] [REF] l10n_eu_oss: correct setUpClass Part-of: odoo/odoo#141347 --- addons/l10n_eu_oss/tests/test_oss.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/l10n_eu_oss/tests/test_oss.py b/addons/l10n_eu_oss/tests/test_oss.py index 2be11c865de..6d5cde0a94d 100644 --- a/addons/l10n_eu_oss/tests/test_oss.py +++ b/addons/l10n_eu_oss/tests/test_oss.py @@ -9,7 +9,7 @@ from odoo.tests import tagged class OssTemplateTestCase(AccountTestInvoicingCommon): @classmethod - def load_specific_chart_template(cls, chart_template_ref): + def setUpClass(cls, chart_template_ref=None): try: super().setUpClass(chart_template_ref=chart_template_ref) except ValueError as e: @@ -23,7 +23,7 @@ class TestOSSBelgium(OssTemplateTestCase): @classmethod def setUpClass(cls, chart_template_ref='be_comp'): - cls.load_specific_chart_template(chart_template_ref) + super().setUpClass(chart_template_ref) cls.company_data['company'].country_id = cls.env.ref('base.be') cls.company_data['company']._map_eu_taxes() @@ -57,7 +57,7 @@ class TestOSSSpain(OssTemplateTestCase): @classmethod def setUpClass(cls, chart_template_ref='es_full'): - cls.load_specific_chart_template(chart_template_ref) + super().setUpClass(chart_template_ref) cls.company_data['company'].country_id = cls.env.ref('base.es') cls.company_data['company']._map_eu_taxes() @@ -90,7 +90,7 @@ class TestOSSUSA(OssTemplateTestCase): @classmethod def setUpClass(cls, chart_template_ref=None): - cls.load_specific_chart_template(chart_template_ref) + super().setUpClass(chart_template_ref) cls.company_data['company'].country_id = cls.env.ref('base.us') cls.company_data['company']._map_eu_taxes()