<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2024 Moduon Team S.L.
     License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0) -->
<odoo>

    <record
        id="view_picking_type_form_inherit_stock_picking_batch_print_invoices"
        model="ir.ui.view"
    >
        <field name="name">Operation Types Batch Print Invoices</field>
        <field name="model">stock.picking.type</field>
        <field
            name="inherit_id"
            ref="stock_picking_batch_print_pickings.view_picking_type_form_inherit_stock_picking_batch_print_pickings"
        />
        <field name="arch" type="xml">
            <xpath expr="//field[@name='number_copies_pickings']" position="attributes">
                <attribute
                    name="attrs"
                >{'invisible': [('print_documents_from_batch', 'not in',
                    ('pickings', 'invoices_and_pickings', 'invoices_or_pickings'))]}</attribute>
            </xpath>
            <xpath expr="//field[@name='number_copies_pickings']" position="after">
                <field
                    name="number_copies_invoices"
                    string="Number of Copies per Invoices"
                    attrs="{'invisible': [('print_documents_from_batch', 'not in',
                    ('invoices', 'invoices_and_pickings', 'invoices_or_pickings'))]}"
                />
            </xpath>
        </field>
    </record>
</odoo>
