diff --git a/contract_mandate/models/contract.py b/contract_mandate/models/contract.py index dc2a92903..8f7053eb2 100644 --- a/contract_mandate/models/contract.py +++ b/contract_mandate/models/contract.py @@ -14,6 +14,7 @@ class ContractContract(models.Model): help="If mandate required in payment method and not set mandate, " "invoice takes the first valid mandate", index=True, + check_company=True, ) mandate_required = fields.Boolean( related="payment_mode_id.payment_method_id.mandate_required", readonly=True diff --git a/contract_mandate/views/contract_view.xml b/contract_mandate/views/contract_view.xml index 9d4201c97..051926044 100644 --- a/contract_mandate/views/contract_view.xml +++ b/contract_mandate/views/contract_view.xml @@ -12,7 +12,7 @@