diff --git a/account_banking_sepa_credit_transfer/tests/test_sct.py b/account_banking_sepa_credit_transfer/tests/test_sct.py index 413dc9137..632802814 100644 --- a/account_banking_sepa_credit_transfer/tests/test_sct.py +++ b/account_banking_sepa_credit_transfer/tests/test_sct.py @@ -256,6 +256,9 @@ class TestSCT(TransactionCase): return def test_usd_currency_sct(self): + # Set a currency_exchange_journal on the company to avoid an exception + # due to the use of a foreign currency + self.main_company.write({"currency_exchange_journal_id": self.bank_journal.id}) invoice1 = self.create_invoice( self.partner_asus.id, "account_payment_mode.res_partner_2_iban", diff --git a/account_banking_sepa_direct_debit/tests/test_sdd.py b/account_banking_sepa_direct_debit/tests/test_sdd.py index dd9b26532..0be586a0e 100644 --- a/account_banking_sepa_direct_debit/tests/test_sdd.py +++ b/account_banking_sepa_direct_debit/tests/test_sdd.py @@ -104,6 +104,10 @@ class TestSDDBase(TransactionCase): ], } ) + # Set a currency_exchange_journal on the company to avoid an exception + # due to the use of a foreign currency + cls.main_company.write({"currency_exchange_journal_id": cls.bank_journal.id}) + cls.company_B.write({"currency_exchange_journal_id": cls.bank_journal.id}) # update payment mode cls.payment_mode = cls.env.ref( "account_banking_sepa_direct_debit.payment_mode_inbound_sepa_dd1"