mirror of
https://github.com/OCA/intrastat-extrastat.git
synced 2025-02-16 17:13:41 +02:00
[IMP] intrastat_product: Better tests data
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user