[IMP] account_banking_mandate: Display mandate_id field in the form view of account.payment.line with the same condition as the tree view.

TT45405
This commit is contained in:
Víctor Martínez
2023-10-06 12:50:20 +02:00
parent acba9e1be9
commit 1b3c1a590d

View File

@@ -17,7 +17,7 @@
<field
name="mandate_id"
domain="[('partner_bank_id', '=', partner_bank_id), ('state', '=', 'valid')]"
attrs="{'invisible': [('mandate_required', '=', False)], 'required': [('mandate_required', '=', True)]}"
attrs="{'invisible': [('payment_type', '!=', 'inbound')], 'required': [('mandate_required', '=', True)]}"
context="{'default_partner_bank_id': partner_bank_id}"
/>
</field>