[IMP] intrastat_product: Better tests data

This commit is contained in:
Denis Roussel
2021-11-11 13:20:27 +01:00
parent f1d53760cf
commit 7d224e4a2e

View File

@@ -39,7 +39,7 @@ class IntrastatProductCommon(IntrastatCommon):
@classmethod @classmethod
def _init_regions(cls): def _init_regions(cls):
# Create Belgium # Create Belgium Region
cls._create_region() cls._create_region()
vals = { vals = {
@@ -75,11 +75,11 @@ class IntrastatProductCommon(IntrastatCommon):
@classmethod @classmethod
def _create_region(cls, vals=None): def _create_region(cls, vals=None):
values = { values = {
"code": "BE", "code": "BE_w",
"country_id": cls.env.ref("base.be").id, "country_id": cls.env.ref("base.be").id,
"company_id": cls.env.company.id, "company_id": cls.env.company.id,
"description": "Belgium", "description": "Belgium Walloon Region",
"name": "Belgium", "name": "Walloon Region",
} }
if vals is not None: if vals is not None:
values.update(vals) values.update(vals)