2021-03-12 16:21:19 +00:00
|
|
|
<?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="view_move_form" model="ir.ui.view">
|
|
|
|
<field name="name">add.mandate.on.account.move.form</field>
|
|
|
|
<field name="model">account.move</field>
|
|
|
|
<field name="inherit_id" ref="account_payment_partner.view_move_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')]"
|
2022-06-29 18:32:58 +00:00
|
|
|
attrs="{'required': [('mandate_required', '=', True),('move_type', 'in', ('out_invoice', 'out_refund'))],
|
|
|
|
'invisible': ['|', ('mandate_required', '=', False),('move_type', 'not in', ('out_invoice', 'out_refund'))]}"
|
2021-03-12 16:21:19 +00:00
|
|
|
/>
|
|
|
|
<field name="mandate_required" invisible="1" />
|
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
</flectra>
|