mirror of
https://gitlab.com/flectra-community/bank-payment.git
synced 2024-11-23 14:12:08 +00:00
25 lines
893 B
XML
25 lines
893 B
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="invoice_form" model="ir.ui.view">
|
|
<field name="name">add.mandate.on.customer.invoice.form</field>
|
|
<field name="model">account.invoice</field>
|
|
<field name="inherit_id" ref="account_payment_partner.invoice_form"/>
|
|
<field name="arch" type="xml">
|
|
<field name="partner_bank_id" position="after">
|
|
<field name="mandate_id"
|
|
domain="[('partner_id', '=', commercial_partner_id), ('state', '=', 'valid')]"
|
|
attrs="{'required': [('mandate_required', '=', True)], 'invisible': [('mandate_required', '=', False)]}"/>
|
|
<field name="mandate_required" invisible="1"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
</flectra>
|