<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
    <record id="view_picking_form" model="ir.ui.view">
        <field name="name">stock.picking.form</field>
        <field name="model">stock.picking</field>
        <field name="inherit_id" ref="stock.view_picking_form" />
        <field name="arch" type="xml">
            <xpath expr="//header" position="inside">
                <button
                    class="btn-primary"
                    type="action"
                    name="%(act_open_wizard_product_set_add_from_picking)d"
                    icon="fa-cubes"
                    attrs="{'invisible': ['|', ('state', '!=', 'draft'), ('immediate_transfer', '=', True)]}"
                    string="Add set"
                />
            </xpath>
        </field>
    </record>
</odoo>
