<?xml version="1.0" encoding="utf-8"?>
<terp>
    <data>
        
        <menuitem icon="terp-product" id="menu_main_product" name="Products"/>
        <menuitem groups="base.group_admin" id="menu_config_product" name="Configuration" parent="product.menu_main_product" sequence="1"/>
        
        <record id="product_product_tree_view" model="ir.ui.view">
            <field name="name">product.product.tree</field>
            <field name="model">product.product</field>
            <field name="type">tree</field>
            <field eval="7" name="priority"/>
            <field name="arch" type="xml">
                <tree colors="red:virtual_available&lt;0;blue:state in ['draft', 'end', 'obsolete']" string="Products">
                    <field name="default_code"/>
                    <field name="name"/>
                    <field name="variants"/>
                    <field name="qty_available"/>
                    <field name="virtual_available"/>
                    <field invisible="'partner_id' not in context" name="price"/>
                    <field name="lst_price"/>
                    <field name="standard_price"/>
                    <field name="state"/>
                </tree>
            </field>
        </record>
        <record id="product_normal_form_view" model="ir.ui.view">
            <field name="name">product.normal.form</field>
            <field name="model">product.product</field>
            <field name="type">form</field>
            <field eval="7" name="priority"/>
            <field name="arch" type="xml">
                <form string="Product">
                    <notebook>
                        <page string="Information">
                            <field name="name" select="1"/>
                            <field name="default_code" select="1"/>
                            <field groups="base.group_extended" name="variants" select="2"/>
                            <field groups="base.group_extended" name="ean13" select="2"/>
                            <newline/>
                            <field name="categ_id" select="1"/>
                            <field name="type" select="2"/>
                            <field digits="(14, 3)" groups="base.group_extended" name="volume"/>
                            <newline/>
                            <field digits="(14, 3)" groups="base.group_extended" name="weight"/>
                            <field digits="(14, 3)" groups="base.group_extended" name="weight_net"/>
                            <field name="procure_method"/>
                            <field name="state" select="2"/>
                            <field name="uom_id"/>
                            <field name="uom_po_id"/>
                            <field groups="base.group_extended" name="product_manager" select="2"/>
                        </page>
                        <page string="Procurement">
                            <field name="supply_method"/>
                            <field name="active" select="2"/>
                            <newline/>
                            <field name="sale_delay"/>
                            <field name="sale_ok" select="2"/>
                            <field name="produce_delay"/>
                            <field name="purchase_ok" select="2"/>
                            <field name="warranty"/>
                            <field groups="base.group_extended" name="rental" select="2"/>
                            <newline/>
                            <field name="list_price"/>
                            <field name="standard_price"/>
                            <field groups="base.group_extended" name="cost_method"/>
                            <newline/>
                            <field groups="base.group_uos" name="uos_id"/>
                            <field groups="base.group_uos" name="uos_coeff"/>
                            <newline/>
                            <field colspan="4" name="seller_ids" nolabel="1" widget="one2many_list"/>
                        </page>
                        <page string="Descriptions">
                            <separator string="Description"/>
                            <field colspan="4" name="description" nolabel="1"/>
                            <separator string="Sale Description"/>
                            <field colspan="4" name="description_sale" nolabel="1"/>
                            <separator string="Purchase Description"/>
                            <field colspan="4" name="description_purchase" nolabel="1"/>
                        </page>
                        <page groups="base.group_extended" string="Packaging">
                            <field name="mes_type"/>
                            <field name="tracking"/>
                            <field colspan="4" name="packaging" nolabel="1">
                                <form string="Packaging">
                                    <field name="ean" select="1"/>
                                    <newline/>
                                    <field name="qty" select="1"/>
                                    <field name="ul"/>
                                    <field name="weight_ul"/>
                                    <separator colspan="4" string="Paletization"/>
                                    <field name="ul_qty"/>
                                    <field name="rows"/>
                                    <field name="weight"/>
                                    <separator colspan="4" string="Palette Dimension"/>
                                    <field name="height"/>
                                    <field name="width"/>
                                    <field name="length"/>
                                    <separator colspan="4" string="Other Info"/>
                                    <field colspan="4" name="name" select="1"/>
                                </form>
                            </field>
                        </page>
                        <page groups="base.group_extended" string="Properties">
                            <properties/>
                        </page>
                    </notebook>
                </form>
            </field>
        </record>
        <record id="product_normal_action" model="ir.actions.act_window">
            <field name="name">Products</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">product.product</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="product_product_tree_view"/>
        </record>
        
        <menuitem action="product_normal_action" id="menu_products" parent="product.menu_main_product" sequence="18"/>
        
        <record id="product_category_form_view" model="ir.ui.view">
            <field name="name">product.category.form</field>
            <field name="model">product.category</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Product Categories">
                    <field name="name" select="1"/>
                    <field name="parent_id"/>
                    <field name="sequence"/>
                    <group colspan="4" groups="base.group_extended">
                        <properties/>
                    </group>
                </form>
            </field>
        </record>
        <record id="product_category_tree_view" model="ir.ui.view">
            <field name="name">product.category.tree</field>
            <field name="model">product.category</field>
            <field name="type">tree</field>
            <field name="field_parent">child_id</field>
            <field name="arch" type="xml">
                <tree string="Products Categories">
                    <field name="complete_name"/>
                </tree>
            </field>
        </record>
        <record id="product_category_action" model="ir.actions.act_window">
            <field name="name">Products by Category</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">product.category</field>
            <field name="domain">[('parent_id','=',False)]</field>
            <field name="view_type">tree</field>
            <field name="view_id" ref="product_category_tree_view"/>
        </record>
        <menuitem action="product_category_action" id="menu_product_category_action" parent="product.menu_main_product" sequence="16"/>
        
        <record id="product_category_action_form" model="ir.actions.act_window">
            <field name="name">Products Categories</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">product.category</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="product_category_tree_view"/>
        </record>
        <menuitem action="product_category_action_form" id="menu_product_category_action_form" parent="product.menu_config_product"/>
        
        
        <record id="product_normal_action_tree" model="ir.actions.act_window">
            <field name="name">product.normal.action.tree</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">product.product</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field name="domain">[('categ_id','child_of',[active_id])]</field>
        </record>
        <record id="ir_product_category_open" model="ir.values">
            <field eval="'tree_but_open'" name="key2"/>
            <field eval="'product.category'" name="model"/>
            <field name="name">Products by Categories</field>
            <field eval="'ir.actions.act_window,%d'%product_normal_action_tree" name="value"/>
            <field eval="True" name="object"/>
        </record>
        
        
        <!-- Unit of Measure -->
        
        <record id="product_uom_tree_view" model="ir.ui.view">
            <field name="name">product.uom.tree</field>
            <field name="model">product.uom</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Unit of Measure">
                    <field name="name"/>
                    <field name="category_id"/>
                    <field name="factor_inv" on_change="onchange_factor_inv(factor_inv)"/>
                    <field name="factor" on_change="onchange_factor(factor)"/>
                    <field name="rounding"/>
                </tree>
            </field>
        </record>
        
        <record id="product_uom_form_view" model="ir.ui.view">
            <field name="name">product.uom.form</field>
            <field name="model">product.uom</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Unit of Measure">
                    <field name="name" select="1"/>
                    <field name="category_id" select="1"/>
                    <field name="factor_inv" select="1"/>
                    <field name="factor" select="1"/>
                    <field name="rounding"/>
                    <field name="active"/>
                </form>
            </field>
        </record>
        <record id="product_uom_form_action" model="ir.actions.act_window">
            <field name="name">Unit of Measure</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">product.uom</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="product_uom_tree_view"/>
        </record>
        <menuitem id="next_id_16" name="Unit of Measure" parent="product.menu_config_product"/><menuitem action="product_uom_form_action" id="menu_product_uom_form_action" parent="next_id_16"/>
        
        <record id="product_uom_categ_form_view" model="ir.ui.view">
            <field name="name">product.uom.categ.form</field>
            <field name="model">product.uom.categ</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Unit of Measure categories">
                    <field colspan="4" name="name" select="1"/>
                </form>
            </field>
        </record>
        <record id="product_uom_categ_form_action" model="ir.actions.act_window">
            <field name="name">Unit of Measure Categories</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">product.uom.categ</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
        </record>
        <menuitem action="product_uom_categ_form_action" id="menu_product_uom_categ_form_action" parent="product.next_id_16"/>
        
        <record id="product_ul_form_view" model="ir.ui.view">
            <field name="name">product.ul.form.view</field>
            <field name="model">product.ul</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Logistical Unit">
                    <field name="name"/>
                    <field name="type"/>
                </form>
            </field>
        </record>
        <record id="product_ul_tree" model="ir.ui.view">
            <field name="name">product.ul.tree</field>
            <field name="model">product.ul</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Logistical Unit">
                    <field name="name" select="1"/>
                    <field name="type" select="1"/>
                </tree>
            </field>
        </record>
        <record id="product_ul_form_action" model="ir.actions.act_window">
            <field name="name">Logistical Unit</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">product.ul</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
        </record>
        <menuitem action="product_ul_form_action" groups="base.group_extended" id="menu_product_ul_form_action" parent="product.menu_config_product"/>
        
        <record id="product_packaging_tree_view" model="ir.ui.view">
            <field name="name">product.packaging.tree.view</field>
            <field name="model">product.packaging</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Packaging">
                    <field name="ean"/>
                    <field name="qty"/>
                    <field name="ul"/>
                </tree>
            </field>
        </record>
        
        <record id="product_packaging_form_view" model="ir.ui.view">
            <field name="name">product.packaging.form.view</field>
            <field name="model">product.packaging</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Packaging">
                    <field name="product_id" select="1"/>
                    <field name="ean" select="1"/>
                    <newline/>
                    <field name="qty" select="1"/>
                    <field name="ul"/>
                    <field name="weight_ul"/>
                    <separator colspan="4" string="Paletization"/>
                    <field name="ul_qty"/>
                    <field name="rows"/>
                    <field name="weight"/>
                    <separator colspan="4" string="Palette Dimension"/>
                    <field name="height"/>
                    <field name="width"/>
                    <field name="length"/>
                    <separator colspan="4" string="Other Info"/>
                    <field colspan="4" name="name" select="1"/>
                </form>
            </field>
        </record>
        
        <record id="product_supplierinfo_form_view" model="ir.ui.view">
            <field name="name">product.supplierinfo.form.view</field>
            <field name="model">product.supplierinfo</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Supplier Information">
                    <field name="name"/>
                    <field name="sequence"/>
                    <field name="product_name"/>
                    <field name="product_code"/>
                    <field name="delay"/>
                    <field name="qty"/>
                    <field colspan="4" groups="base.group_extended" name="pricelist_ids" nolabel="1" widget="one2many_list">
                        <tree editable="bottom" string="Pricelist">
                            <field name="min_quantity"/>
                            <field name="price"/>
                        </tree>
                        <form>
                            <field name="min_quantity"/>
                            <field name="price"/>
                        </form>
                    </field>
                </form>
            </field>
        </record>
        <record id="product_supplierinfo_tree_view" model="ir.ui.view">
            <field name="name">product.supplierinfo.tree.view</field>
            <field name="model">product.supplierinfo</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Supplier Information">
                    <field name="sequence" string="Seq"/>
                    <field name="name"/>
                    <field name="delay"/>
                    <field name="qty"/>
                    <field name="product_code"/>
                </tree>
            </field>
        </record>
        
        <record id="product_variant_form_view" model="ir.ui.view">
            <field name="name">product.variant.form</field>
            <field name="model">product.product</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Product Variant">
                    <separator colspan="4" string="Description"/>
                    <field name="product_tmpl_id" select="1"/>
                    <field name="active" select="1"/>
                    <field name="variants" select="1"/>
                    <field name="default_code" select="1"/>
                    <field name="price_margin" select="1"/>
                    <field name="price_extra" select="1"/>
                </form>
            </field>
        </record>
        
        <record id="product_variant_tree_view" model="ir.ui.view">
            <field name="name">product.variant.tree</field>
            <field name="model">product.product</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Product Variant">
                    <field name="product_tmpl_id"/>
                    <field name="active"/>
                    <field name="variants"/>
                    <field name="default_code"/>
                    <field name="price_margin"/>
                    <field name="price_extra"/>
                </tree>
            </field>
        </record>
        
        <record id="product_template_tree_view" model="ir.ui.view">
            <field name="name">product.template.product.tree</field>
            <field name="model">product.template</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Product Template">
                    <field name="name"/>
                    <field name="categ_id"/>
                    <field name="type"/>
                    <field name="state"/>
                </tree>
            </field>
        </record>
        
        <record id="product_template_form_view" model="ir.ui.view">
            <field name="name">product.template.product.form</field>
            <field name="model">product.template</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Product Template">
                    <notebook>
                        <page string="Information">
                            <field colspan="4" name="name" select="1"/>
                            <field name="categ_id" select="1"/>
                            <field name="type" select="1"/>
                            <field digits="(14, 3)" name="volume"/>
                            <newline/>
                            <field digits="(14, 3)" name="weight"/>
                            <field digits="(14, 3)" name="weight_net"/>
                            <field name="procure_method"/>
                            <field name="state"/>
                            <field name="uom_id"/>
                            <field name="uom_po_id"/>
                            <field colspan="4" name="description"/>
                            <newline/>
                            <field name="list_price"/>
                            <field name="standard_price"/>
                            <field name="product_manager"/>
                            <field name="cost_method"/>
                        </page>
                        <page string="Procurement">
                            <field name="supply_method" select="2"/>
                            <field name="rental" select="2"/>
                            <newline/>
                            <field name="sale_delay" select="2"/>
                            <field name="sale_ok" select="2"/>
                            <field name="purchase_ok" select="2"/>
                            <field name="produce_delay" select="2"/>
                            <field name="warranty"/>
                        </page>
                        <page string="Descriptions">
                            <separator string="Sale Description"/>
                            <field colspan="4" name="description_sale" nolabel="1"/>
                            <separator string="Purchase Description"/>
                            <field colspan="4" name="description_purchase" nolabel="1"/>
                        </page>
                        <page string="Properties">
                            <properties/>
                        </page>
                    </notebook>
                </form>
            </field>
        </record>
        
        
    </data>
</terp>
