<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright 2015-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="product_product_tree_view" model="ir.ui.view">
        <field name="name">usability.product.product.tree</field>
        <field name="model">product.product</field>
        <field name="inherit_id" ref="product.product_product_tree_view"/>
        <field name="arch" type="xml">
            <field name="lst_price" position="after">
                <field name="currency_id" invisible="1"/>
            </field>
            <field name="lst_price" position="attributes">
                <attribute name="widget">monetary</attribute>
            </field>
        </field>
    </record>

    <record id="product_normal_form_view" model="ir.ui.view">
        <field name="name">usability.product.product.form</field>
        <field name="model">product.product</field>
        <field name="inherit_id" ref="product.product_normal_form_view"/>
        <field name="arch" type="xml">
            <field name="barcode" position="after">
                <field name="barcode_type" attrs="{'invisible': [('barcode', '=', False)]}"/>
            </field>
        </field>
    </record>

    <record id="product_product_tree_view" model="ir.ui.view">
        <field name="name">usability.product.product.tree</field>
        <field name="model">product.product</field>
        <field name="inherit_id" ref="product.product_product_tree_view"/>
        <field name="arch" type="xml">
            <field name="company_id" position="before">
                <field name="seller_id" optional="hide"/>
            </field>
        </field>
    </record>
 

</odoo>
