[FIX] l10n_it_stock_ddt: manage l10n_it_edi_sdiscoop installed

These modules will need to be merged, but in the meantime the tests need
to be green for the CI.
A constraint is raised in `account_edi_proxy_client` is we do not call
that method.
This commit is contained in:
wan
2021-07-19 10:14:25 +00:00
committed by william-andre
parent 1b4a4523de
commit 9f1a08d1b6
+7 -2
View File
@@ -12,7 +12,7 @@ class TestDDT(TestSaleCommon):
super().setUpClass(chart_template_ref=chart_template_ref)
cls.company_data['company'].write({
'vat':"IT12345670017",
'country_id': cls.env.ref('base.it'),
'country_id': cls.env.ref('base.it').id,
'l10n_it_codice_fiscale': '01234560157',
'l10n_it_tax_system': 'RF01',
'street': 'Via Giovanni Maria Platina 66',
@@ -27,10 +27,15 @@ class TestDDT(TestSaleCommon):
'street': 'Piazza Guglielmo Marconi 5',
'zip': '26100',
'city': 'Cremona',
'country_id': cls.env.ref('base.it'),
'country_id': cls.env.ref('base.it').id,
'vat': 'IT12345670124'
})
settings = cls.env['res.config.settings'].create({})
if hasattr(settings, 'button_create_proxy_user'):
# Needed when `l10n_it_edi_sdiscoop` is installed
settings.button_create_proxy_user()
def test_ddt_flow(self):
"""