Maintainers
This module is maintained by the OCA.
-
+
+
+
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
diff --git a/contract_mandate/tests/test_contract_mandate.py b/contract_mandate/tests/test_contract_mandate.py index 5ae92dbf8..3e188d230 100644 --- a/contract_mandate/tests/test_contract_mandate.py +++ b/contract_mandate/tests/test_contract_mandate.py @@ -56,6 +56,11 @@ class TestContractMandate(TestContractBase): new_invoice = self.contract_with_mandate.recurring_create_invoice() self.assertEqual(new_invoice.mandate_id, self.mandate2) + def test_onchange_payment_mode_id(self): + self.contract_with_mandate.mandate_required = False + self.contract_with_mandate._onchange_payment_mode_id() + self.assertFalse(self.contract_with_mandate.mandate_id) + def test_contract_mandate_default(self): self.payment_mode.payment_method_id.mandate_required = False self.contract_with_mandate.mandate_id = False diff --git a/contract_mandate/views/contract_view.xml b/contract_mandate/views/contract_view.xml index 051926044..53b0b9c3a 100644 --- a/contract_mandate/views/contract_view.xml +++ b/contract_mandate/views/contract_view.xml @@ -10,6 +10,7 @@ />



