@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user