<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright (C) 2022 - Today: GRAP (http://www.grap.coop)
@author: Quentin DUPONT (quentin.dupont@grap.coop)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<odoo>

    <record id="view_product_template_search" model="ir.ui.view">
        <field name="model">product.template</field>
        <field name="inherit_id" ref="product.product_template_search_view" />
        <field name="arch" type="xml">
            <field name="categ_id" position="after">
                <field name="main_seller_id" />
            </field>
            <filter name="categ_id" position="after">
                <filter
                    string="Main Vendor"
                    name="main_seller_id"
                    context="{'group_by':'main_seller_id'}"
                />
            </filter>
        </field>
    </record>

    <record id="view_product_template_tree" model="ir.ui.view">
        <field name="model">product.template</field>
        <field name="inherit_id" ref="product.product_template_tree_view" />
        <field name="arch" type="xml">
            <field name="list_price" position="before">
                <field name="main_seller_id" optional="show" />
            </field>
        </field>
    </record>

</odoo>
