<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>
        <record id="view_batch_payment_form_inherit" model="ir.ui.view">
            <field name="name">sct.account.batch.payment.form.inherit</field>
            <field name="model">account.batch.payment</field>
            <field name="inherit_id" ref="odex30_account_batch_payment.view_batch_payment_form"/>
            <field name="arch" type="xml">
                <xpath expr="//field[@name='name']" position="after">
                    <field name="iso20022_batch_booking" string="Batch Booking" invisible="payment_method_code not in ['sepa_ct', 'iso20022', 'iso20022_se', 'iso20022_ch']"/>
                    <field name="iso20022_charge_bearer" invisible="payment_method_code not in ['iso20022', 'iso20022_se', 'iso20022_ch']" required="1"/>
                </xpath>
            </field>
        </record>
    </data>
</odoo>
