[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:
Pedro M. Baeza
2019-03-27 18:15:15 +01:00
parent f16f6839ce
commit 651e29eb53

View File

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