<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2024 Moduon Team S.L.
     License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0) -->
<odoo>
    <record
        id="sale_invoice_frequency_view_form_inherit_stock_picking_batch_ux"
        model="ir.ui.view"
    >
        <field name="name">Invoice frequency Form Stock Picking Batch UX</field>
        <field name="model">sale.invoice.frequency</field>
        <field
            name="inherit_id"
            ref="sale_invoice_frequency.sale_invoice_frequency_view_form"
        />
        <field name="arch" type="xml">
            <xpath expr="//field[@name='name']" position="after">
                <group>

                    <field
                        name="automatic_batch_invoicing"
                        widget="boolean_toggle"
                        groups="account.group_account_invoice"
                    />
                </group>
            </xpath>
        </field>
    </record>
    <record
        id="sale_invoice_frequency_view_tree_inherit_stock_picking_batch_ux"
        model="ir.ui.view"
    >
        <field name="name">Invoice frequency Tree Stock Picking Batch UX</field>
        <field name="model">sale.invoice.frequency</field>
        <field
            name="inherit_id"
            ref="sale_invoice_frequency.sale_invoice_frequency_view_tree"
        />
        <field name="arch" type="xml">
            <xpath expr="//field[@name='name']" position="after">
                <field
                    name="automatic_batch_invoicing"
                    widget="boolean_toggle"
                    groups="account.group_account_invoice"
                />
            </xpath>
        </field>
    </record>
</odoo>
