mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[IMP] account_banking_mandate: Ensure correctness on integration
With some environments, the returned payment mode may not be the proper one, so we force it here.
This commit is contained in:
@@ -10,6 +10,8 @@ class TestInvoiceMandate(TransactionCase):
|
||||
|
||||
def test_post_invoice_01(self):
|
||||
self.invoice._onchange_partner_id()
|
||||
# Make sure proper payment mode is selected
|
||||
self.invoice.payment_mode_id = self.mode_inbound_acme.id
|
||||
|
||||
self.assertEqual(self.invoice.mandate_id, self.mandate)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user