[FIX] account_banking_sepa_direct_debit: unit tests

This commit is contained in:
sygel
2024-05-07 15:30:36 +02:00
parent 19a5896bc7
commit 13e620569a
2 changed files with 7 additions and 0 deletions

View File

@@ -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",

View File

@@ -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"