bank-payment/account_banking_mandate/views/account_payment_line.xml
2024-05-03 10:36:50 +02:00

44 lines
1.7 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<!--
© 2013-2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
-->
<flectra>
<record id="account_payment_line_form" model="ir.ui.view">
<field name="name">account_banking_mandate.account.payment.line.form</field>
<field name="model">account.payment.line</field>
<field
name="inherit_id"
ref="account_payment_order.account_payment_line_form"
/>
<field name="arch" type="xml">
<field name="partner_bank_id" position="after">
<field name="mandate_required" invisible="1" />
<field
name="mandate_id"
domain="[('partner_bank_id', '=', partner_bank_id), ('state', '=', 'valid')]"
required="mandate_required"
invisible="payment_type != 'inbound'"
context="{'default_partner_bank_id': partner_bank_id}"
/>
</field>
</field>
</record>
<record id="account_payment_line_tree" model="ir.ui.view">
<field name="name">account_banking_mandate.account.payment.line.tree</field>
<field name="model">account.payment.line</field>
<field
name="inherit_id"
ref="account_payment_order.account_payment_line_tree"
/>
<field name="arch" type="xml">
<field name="partner_bank_id" position="after">
<field
name="mandate_id"
invisible="context.get('default_payment_type') != 'inbound'"
/>
</field>
</field>
</record>
</flectra>