<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright 2014-2020 Akretion (http://www.akretion.com/)
  @author Alexis de Lattre <alexis.delattre@akretion.com>
  License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->

<odoo>


<record id="view_warehouse_orderpoint_tree_editable" model="ir.ui.view">
    <field name="model">stock.warehouse.orderpoint</field>
    <field name="inherit_id" ref="stock.view_warehouse_orderpoint_tree_editable" />
    <field name="arch" type="xml">
        <field name="product_id" position="after">
            <field name="seller_id" optional="hide"/>
        </field>
    </field>
</record>

<record id="view_warehouse_orderpoint_tree_editable_config" model="ir.ui.view">
    <field name="model">stock.warehouse.orderpoint</field>
    <field name="inherit_id" ref="stock.view_warehouse_orderpoint_tree_editable_config" />
    <field name="arch" type="xml">
        <field name="product_id" position="after">
            <field name="seller_id" optional="hide"/>
        </field>
    </field>
</record>

<record id="stock_reorder_report_search" model="ir.ui.view">
    <field name="model">stock.warehouse.orderpoint</field>
    <field name="inherit_id" ref="stock.stock_reorder_report_search"/>
    <field name="arch" type="xml">
        <field name="product_id" position="after">
            <field name="seller_id" domain="[('parent_id', '=', False)]"/>
        </field>
        <filter name="groupby_category" position="after">
            <filter string="Supplier" name="seller_id_groupby" context="{'group_by': 'seller_id'}"/>
        </filter>
    </field>
</record>


</odoo>
