Skip to content
Snippets Groups Projects
Commit 3c6aab5c authored by Ricardo Gomes Rodrigues (rigr)'s avatar Ricardo Gomes Rodrigues (rigr)
Browse files

[FIX] l10n_it_stock_ddt: picking type


The test `test_ddt_flow` was failing because the picking types were created
without a ddt sequence. This is because the picking types were created
at the moment the company was created. However, the country of the company
was set after the setup of the CoA. This means that when we were creating
the picking types, the company's country was not Italy, therefore no
DDT sequence was created.

This commit fixes this by overriding the `setup_company_data` method to
add the country while creating the company and its CoA.

Fixes runbot error 24396 & 24397

closes odoo/odoo#133434

Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
parent 5add840b
Branches
Tags
No related merge requests found
......@@ -31,6 +31,12 @@ class TestDDT(TestSaleCommon):
'vat': 'IT12345670124'
})
@classmethod
def setup_company_data(cls, company_name, **kwargs):
return super().setup_company_data(company_name, **{
**kwargs,
'country_id': cls.env.ref('base.it').id,
})
def test_ddt_flow(self):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment