<?xml version="1.0" encoding="UTF-8" ?>
<odoo>

    <!-- Inherit to customize according to your own needs -->
    <record id="product_tree_view4picking" model="ir.ui.view">
        <field name="model">product.product</field>
        <field name="priority" eval="20" />
        <field name="arch" type="xml">
            <tree name="Products for picking" create="0" editable="top">
                <field name="standard_price" readonly="1" />
                <field name="display_name" readonly="1" />
                <field name="qty_to_process" />
                <field name="qty_available" />
                <field name="incoming_qty" />
                <button name="button_quick_open_product" string="Open" type="object" />
            </tree>
       </field>
    </record>

    <record id="product_search_view4picking" model="ir.ui.view">
        <field name="model">product.product</field>
        <field
            name="inherit_id"
            ref="base_product_mass_addition.product_search_form_view"
        />
        <field name="mode">primary</field>
        <field name="arch" type="xml">
            <xpath expr="//filter[last()]" position="after">
                <filter
                    name="use_only_available_products"
                    string="Use Only Available Products"
                    domain="[('qty_available', '>', 0)]"
                    help="Filter products available in the current location"
                />
            </xpath>
        </field>
    </record>

</odoo>
