[FIX] account_banking_sepa_credit_transfer: fix inactive currency error in the tests

In case the currency is not active, the test fails because an invoice
cannot be validated with an inactive currency

TT43341
This commit is contained in:
pilarvargas-tecnativa
2023-05-15 17:33:32 +02:00
committed by Dũng (Trần Đình)
parent ae9200dbf8
commit 2cb4939f64

View File

@@ -29,7 +29,9 @@ class TestSCT(TransactionCase):
cls.partner_asus = cls.env.ref("base.res_partner_1")
cls.partner_c2c = cls.env.ref("base.res_partner_12")
cls.eur_currency = cls.env.ref("base.EUR")
cls.eur_currency.active = True
cls.usd_currency = cls.env.ref("base.USD")
cls.usd_currency.active = True
cls.main_company = cls.env["res.company"].create(
{"name": "Test EUR company", "currency_id": cls.eur_currency.id}
)