Files
bank-payment/account_banking_pain_base/views/account_payment_method.xml
Alexis de Lattre e287dda966 Add warning when payment order is not SEPA
The field 'sepa' on account.payment.order is only display for SEPA
payment methods.
If the option "show warning if not SEPA" is enabled on the payment
method, a warning banner is now displayed on payment orders with a SEPA
payment method which are not SEPA.
2023-11-03 23:38:57 +01:00

39 lines
1.4 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="account_payment_method_form" model="ir.ui.view">
<field name="name">pain_base.account_payment_method.form</field>
<field name="model">account.payment.method</field>
<field
name="inherit_id"
ref="account_payment_mode.account_payment_method_form"
/>
<field name="arch" type="xml">
<field name="payment_type" position="after">
<field name="pain_version" />
<field
name="convert_to_ascii"
attrs="{'invisible': [('pain_version', '=', False)]}"
/>
<field
name="warn_not_sepa"
attrs="{'invisible': [('pain_version', '=', False)]}"
/>
</field>
</field>
</record>
<record id="account_payment_method_tree" model="ir.ui.view">
<field name="name">pain_base.account_payment_method.tree</field>
<field name="model">account.payment.method</field>
<field
name="inherit_id"
ref="account_payment_mode.account_payment_method_tree"
/>
<field name="arch" type="xml">
<field name="payment_type" position="after">
<field name="pain_version" />
</field>
</field>
</record>
</odoo>