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

    <!-- Inherit to customize according to your own needs -->
    <record id="product_tree_view4purchase" model="ir.ui.view">
        <field name="model">product.product</field>
        <field name="priority" eval="20" />
        <field name="arch" type="xml">
            <tree create="0" editable="top">
                <field name="display_name" readonly="1" />
                <field name="qty_to_process" />
                <field name="quick_uom_category_id" invisible="1" />
                <field
                    name="quick_uom_id"
                    options="{'no_open': True, 'no_create': True}"
                    string="UoM"
                    groups="uom.group_uom"
                />
                <field name="seller_price" readonly="1" />
                <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_form_view" model="ir.ui.view">
        <field name="model">product.product</field>
        <field name="mode">primary</field>
        <field
            name="inherit_id"
            ref="base_product_mass_addition.product_search_form_view"
        />
        <field name="arch" type="xml">
            <xpath expr="//filter[last()]" position="after">
                <filter
                    name="filter_for_current_supplier"
                    string="For current supplier"
                    domain="[]"
                    context="{'for_current_supplier': True}"
                    help="Filter products supplied by the supplier of the current parent object"
                />
            </xpath>
        </field>
    </record>
</odoo>
