mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[FIX] account_banking_sepa_direct_debit: unit tests
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user