<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <menuitem id="prod_config_main" name="Products" parent="base.menu_base_config" sequence="70"/>

        <record id="product_search_form_view" model="ir.ui.view">
            <field name="name">product.search.form</field>
            <field name="model">product.product</field>
            <field name="arch" type="xml">
                <search string="Product">
                   <field name="name" string="Product" filter_domain="['|',('name','ilike',self),('default_code','ilike',self)]"/>
                   <filter string="Services" icon="terp-accessories-archiver" domain="[('type','=','service')]"/>
                   <filter string="Consumable" name="consumable" icon="terp-accessories-archiver" domain="[('type','=','consu')]" help="Consumable products"/>
                   <separator/>
                   <filter string="Can be Sold" name="filter_to_sell" icon="terp-accessories-archiver-minus" domain="[('sale_ok','=',1)]"/>
                   <field name="categ_id"/>
                   <group expand="0" string="Context...">
                       <field name="pricelist_id" widget="selection" context="{'pricelist': self}" filter_domain="[]" groups="product.group_sale_pricelist"/> <!-- Keep widget=selection on this field to pass numeric `self` value, which is not the case for regular m2o widgets! -->
                       <field name="company_id" groups="base.group_multi_company"/>
                   </group>
                   <group  expand='0' string='Group by...'>
                       <filter string='Category' icon="terp-stock_symbol-selection" domain="[]" context="{'group_by' : 'categ_id'}"/>
                       <filter string='Default Unit of Measure' icon="terp-mrp" domain="[]" context="{'group_by' : 'uom_id'}"/>
                       <filter string='Type' icon="terp-stock_symbol-selection" domain="[]" context="{'group_by' : 'type'}"/>
                       <filter string='Company' icon="terp-go-home" domain="[]" context="{'group_by' : 'company_id'}" groups="base.group_multi_company"/>
                   </group>
                </search>
            </field>
        </record>

        <record id="product_product_tree_view" model="ir.ui.view">
            <field name="name">product.product.tree</field>
            <field name="model">product.product</field>
            <field eval="7" name="priority"/>
            <field name="arch" type="xml">
                <tree colors="red:virtual_available&lt;0;blue:virtual_available&gt;=0 and state in ('draft', 'end', 'obsolete');black:virtual_available&gt;=0 and state not in ('draft', 'end', 'obsolete')" string="Products">
                    <field name="default_code"/>
                    <field name="name"/>
                    <field name="categ_id" invisible="1"/>
                    <field name="type" invisible="1"/>
                    <field name="variants" groups="product.group_product_variant"/>
                    <field name="uom_id" string="Unit of Measure" groups="product.group_uom"/>
                    <field name="qty_available"/>
                    <field name="virtual_available"/>
                    <field name="lst_price"/>
                    <field name="price" invisible="not context.get('pricelist',False)"/>
                    <field name="standard_price" invisible="1"/>
                    <field name="state"/>
                    <field name="company_id" groups="base.group_multi_company" invisible="1"/>
                </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 eval="7" name="priority"/>
            <field name="arch" type="xml">
                <form string="Product" version="7.0">
                    <sheet>
                        <field name="image_medium" widget="image" class="oe_avatar oe_left"/>
                        <div class="oe_title">
                            <div class="oe_edit_only">
                                <label for="name" string="Product Name"/>
                            </div>
                            <h1>
                                <field name="name"/>
                            </h1>
                            <label for="categ_id" class="oe_edit_only"/>
                            <h2><field name="categ_id"/></h2>
                            <div name="options" groups="base.group_user">
                                <field name="sale_ok"/>
                                <label for="sale_ok"/>
                            </div>
                        </div>
                        <div class="oe_right oe_button_box" name="buttons">
                        </div>
                        <notebook>
                            <page string="Information">
                                <group>
                                    <group>
                                        <field name="type"/>
                                        <field name="uom_id" on_change="onchange_uom(uom_id,uom_po_id)" groups="product.group_uom"/>
                                        <field name="list_price"/>
                                    </group>
                                    <group>
                                        <field name="default_code"/>
                                        <label for="ean13"/>
                                        <div name="ean">
                                            <field name="ean13" placeholder="e.g. 5901234123457"/>
                                        </div>
                                    </group>
                                    <group>
                                        <field groups="product.group_product_variant" name="variants"/>
                                        <field name="price_margin" groups="product.group_product_variant"/>
                                        <field name="price_extra" groups="product.group_product_variant"/>
                                    </group>
                                </group>
                                <field name="description" placeholder="describe the product characteristics..."/>
                            </page>
                            <page string="Procurements" groups="base.group_user">
                                <group name="procurement">
                                    <group name="general">
                                        <field name="cost_method" groups="product.group_costing_method"/>
                                        <field name="standard_price" attrs="{'readonly':[('cost_method','=','average')]}"/>
                                    </group>
                                    <group name="procurement_uom" groups="product.group_uom" string="Purchase">
                                        <field name="uom_po_id"/>
                                    </group>
                                </group>
                                <separator string="Description for Suppliers"/>
                                <field name="description_purchase" placeholder="This note will be displayed on requests for quotation..."/>
                            </page>
                            <page string="Inventory" groups="base.group_user">
                                <group name="inventory">
                                    <group name="status" string="Status">
                                        <field name="state"/>
                                        <field name="product_manager"/>
                                    </group>
                                    <group name="Weights" string="Weights">
                                        <field digits="(14, 3)" name="volume" attrs="{'readonly':[('type','=','service')]}"/>
                                        <field name="weight" attrs="{'readonly':[('type','=','service')]}"/>
                                        <field name="weight_net" attrs="{'readonly':[('type','=','service')]}"/>
                                    </group>
                                </group>
                            </page>
                            <page string="Sales" attrs="{'invisible':[('sale_ok','=',False)]}">
                                <group name="sale">
                                    <group string="Sale Conditions">
                                        <label for="warranty"/>
                                        <div>
                                            <field name="warranty" class="oe_inline"/> months
                                        </div>
                                    </group>
                                    <group groups="product.group_uos" string="Unit of Measure">
                                        <field name="uos_id"/>
                                        <field name="uos_coeff"/>
                                        <field name="mes_type"/>
                                    </group>
                                </group>
                                <field name="packaging" groups="product.group_stock_packaging">
                                    <form string="Packaging" version="7.0">
                                        <group col="4">
                                            <field name="ean"/>
                                            <field name="sequence" invisible="1"/>
                                            <newline/>
                                            <field name="qty"/>
                                            <field name="ul"/>
                                            <field name="weight_ul"/>
                                            <separator colspan="4" string="Palletization"/>
                                            <field name="ul_qty"/>
                                            <field name="rows"/>
                                            <field name="weight"/>
                                            <separator colspan="4" string="Pallet Dimension"/>
                                            <field name="height"/>
                                            <field name="width"/>
                                            <field name="length"/>
                                        </group>
                                        <separator colspan="4" string="Description"/>
                                        <field name="name"/>
                                    </form>
                                </field>
                                <separator string="Description for Quotations"/>
                                <field name="description_sale" placeholder="note to be displayed on quotations..."/>
                            </page>
                        </notebook>
                    </sheet>
                    <div class="oe_chatter">
                        <field name="message_follower_ids" widget="mail_followers"/>
                        <field name="message_ids" widget="mail_thread"/>
                    </div>
                </form>
            </field>
        </record>

        <!-- Product Kanban View  -->

        <record model="ir.ui.view" id="product.product_kanban_view">
            <field name="name">Product Kanban</field>
            <field name="model">product.product</field>
            <field name="arch" type="xml">
                <kanban>
                    <field name="color"/>
                    <field name="type"/>
                    <field name="list_price"/>
                    <templates>
                        <t t-name="kanban-box">
                            <div class="oe_kanban_vignette oe_semantic_html_override">
                                <a type="open"><img t-att-src="kanban_image('product.product', 'image_small', record.id.value)" class="oe_kanban_image"/></a>
                                <div class="oe_kanban_details">
                                    <h4>
                                        <a type="open">
                                             <t t-if="record.code.raw_value">[<field name="code"/>]</t> <field name="name"/>
                                        </a>
                                    </h4>
                                    <div name="tags"/>
                                    <ul>
                                        <li>Price: <field name="lst_price"></field></li>
                                    </ul>
                                </div>
                            </div>
                        </t>
                    </templates>
                </kanban>
            </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_mode">tree,form,kanban</field>
            <field name="view_id" ref="product_product_tree_view"/>
            <field name="search_view_id" ref="product_search_form_view"/>
            <field name="help" type="html">
              <p class="oe_view_nocontent_create">
                Click to define a new product.
              </p><p>
                You must define a product for everything you buy or sell,
                whether it's a physical product, a consumable or service.
              </p>
            </field>
        </record>
        <record id="product_normal_action_sell" 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_mode">kanban,tree,form</field>
            <field name="view_type">form</field>
            <field name="context">{"search_default_filter_to_sell":1}</field>
            <field name="view_id" ref="product_product_tree_view"/>
            <field name="search_view_id" ref="product_search_form_view"/>
            <field name="help" type="html">
              <p class="oe_view_nocontent_create">
                Click to define a new product.
              </p><p>
                You must define a product for everything you sell, whether it's
                a physical product, a consumable or a service you offer to
                customers.
              </p><p>
                The product form contains information to simplify the sale
                process: price, notes in the quotation, accounting data,
                procurement methods, etc.
              </p>
            </field>
        </record>

        <record id="open_view_product_tree1" model="ir.actions.act_window.view">
            <field name="sequence" eval="2"/>
            <field name="view_mode">tree</field>
            <field name="view_id" ref="product_product_tree_view"/>
            <field name="act_window_id" ref="product_normal_action_sell"/>
        </record>

        <record id="open_view_product_form1" model="ir.actions.act_window.view">
            <field name="sequence" eval="3"/>
            <field name="view_mode">form</field>
            <field name="view_id" ref="product_normal_form_view"/>
            <field name="act_window_id" ref="product_normal_action_sell"/>
        </record>

        <record id="open_view_product_kanban1" model="ir.actions.act_window.view">
            <field name="sequence" eval="1"/>
            <field name="view_mode">kanban</field>
            <field name="view_id" ref="product_kanban_view"/>
            <field name="act_window_id" ref="product_normal_action_sell"/>
        </record>

        <menuitem id="base.menu_product" name="Products" parent="base.menu_base_partner" sequence="9"/>
        <menuitem action="product.product_normal_action_sell" id="product.menu_products" parent="base.menu_product" sequence="1"/>

        <record id="product_normal_action_puchased" 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_mode">kanban,tree,form</field>
            <field name="context">{"search_default_filter_to_purchase":1}</field>
            <field name="view_id" ref="product_kanban_view"/>
            <field name="search_view_id" ref="product_search_form_view"/>
            <field name="help" type="html">
              <p class="oe_view_nocontent_create">
                Click to define a new product.
              </p><p>
                You must define a product for everything you purchase, whether
                it's a physical product, a consumable or services you buy to
                subcontractants.
              </p><p>
                The product form contains detailed information to improve the
                purchase process: prices, procurement logistics, accounting data,
                available suppliers, etc.
              </p>
            </field>
        </record>

        <record id="product_category_search_view" model="ir.ui.view">
            <field name="name">product.category.search</field>
            <field name="model">product.category</field>
            <field name="arch" type="xml">
                <search string="Product Categories">
                    <field name="name" string="Product Categories"/>
                    <field name="parent_id"/>
                </search>
            </field>
        </record>
        <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="arch" type="xml">
                <form string="Product Categories" version="7.0">
                    <sheet>
                        <div class="oe_title">
                            <label for="name" class="oe_edit_only"/>
                            <h1>
                                <field name="name"/>
                            </h1>
                        </div>
                        <group>
                            <group name="parent" col="4">
                                <field name="parent_id"/>
                                <field name="type"/>
                            </group>
                        </group>
                    </sheet>
                </form>
            </field>
        </record>
        <record id="product_category_list_view" model="ir.ui.view">
            <field name="name">product.category.list</field>
            <field name="model">product.category</field>
            <field name="priority">1</field>
            <field name="arch" type="xml">
                <tree string="Product Categories">
                    <field name="complete_name"/>
                </tree>
            </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="field_parent">child_id</field>
            <field name="arch" type="xml">
                <tree toolbar="True" string="Product Categories">
                    <field name="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"/>
            <field name="help" type="html">
              <p>
                Here is a list of all your products classified by category. You
                can click a category to get the list of all products linked to
                this category or to a child of this category.
              </p>
            </field>
        </record>
        <menuitem
            action="product_category_action"
            id="product.menu_products_category"
            parent="base.menu_product"
            sequence="0" groups="base.group_no_one"/>
        <record id="product_category_action_form" model="ir.actions.act_window">
            <field name="name">Product 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="search_view_id" ref="product_category_search_view"/>
            <field name="view_id" ref="product_category_list_view"/>
        </record>
        <menuitem action="product_category_action_form"
            groups="base.group_no_one"
            id="menu_product_category_action_form"
            parent="prod_config_main" sequence="2"/>


        <record id="product_normal_action_tree" 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_mode">tree,form,kanban</field>
            <field name="context">{'categ_id':active_id, 'search_default_categ_id':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"/>
        </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="arch" type="xml">
                <tree string="Units of Measure">
                    <field name="name"/>
                    <field name="category_id"/>
                </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="arch" type="xml">
                <form string="Units of Measure" version="7.0">
                    <group>
                        <group>
                            <field name="name"/>
                            <field name="category_id"/>
                            <field name="uom_type" on_change="onchange_type(uom_type)"/>
                            <field name="factor"
                                digits="[42,5]"
                                attrs="{'invisible':[('uom_type','!=','smaller')],
                                        'readonly':[('uom_type','=','bigger')]}"/>
                            <field name="factor_inv"
                                digits="[42,5]"
                                attrs="{'invisible':[('uom_type','!=','bigger')],
                                        'readonly':[('uom_type','!=','bigger')]}"/>
                            <p attrs="{'invisible':[('uom_type','!=','smaller')]}" class="oe_grey" colspan="2">
                                e.g: 1 * (reference unit) = ratio * (this unit)
                            </p>
                            <p attrs="{'invisible':[('uom_type','!=','bigger')]}" class="oe_grey" colspan="2">
                                e.g: 1 * (this unit) = ratio * (reference unit)
                            </p>
                        </group>
                        <group>
                            <field name="active"/>
                            <field name="rounding"/>
                        </group>
                    </group>
                </form>
            </field>
        </record>
        <record id="product_uom_form_action" model="ir.actions.act_window">
            <field name="name">Units 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"/>
            <field name="help" type="html">
              <p class="oe_view_nocontent_create">
                Click to add a new unit of measure.
              </p><p>
                You must define a conversion rate between several Units of
                Measure within the same category.
              </p>
            </field>
        </record>
        <menuitem id="next_id_16" name="Units of Measure" parent="prod_config_main" sequence="30" groups="product.group_uom"/>
        <menuitem action="product_uom_form_action" id="menu_product_uom_form_action" parent="base.menu_base_config" sequence="30" groups="product.group_uom"/>

        <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="arch" type="xml">
                <form string="Units of Measure categories" version="7.0">
                    <group>
                        <field name="name"/>
                    </group>
                </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>
            <field name="help" type="html">
              <p class="oe_view_nocontent_create">
                Click to add a new unit of measure category.
              </p><p>
                Units of measure belonging to the same category can be
                converted between each others. For example, in the category
                <i>'Time'</i>, you will have the following units of measure:
                Hours, Days.
              </p>
            </field>
        </record>
        <menuitem action="product_uom_categ_form_action" id="menu_product_uom_categ_form_action" parent="base.menu_base_config" sequence="25" groups="base.group_no_one"/>

        <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="arch" type="xml">
                <form string="Packaging" version="7.0">
                    <group>
                        <field name="name"/>
                        <field name="type"/>
                    </group>
                </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="arch" type="xml">
                <tree string="Packaging">
                    <field name="name"/>
                    <field name="type"/>
                </tree>
            </field>
        </record>
        <record id="product_ul_form_action" model="ir.actions.act_window">
            <field name="name">Packaging</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>
            <field name="help" type="html">
              <p class="oe_view_nocontent_create">
                Click to add a new packaging type.
              </p><p>
                The packaging type define the dimensions as well as the number
                of products per package. This will ensure salesperson sell the
                right number of products according to the package selected.
              </p>
            </field>
        </record>
        <menuitem
            action="product_ul_form_action" groups="product.group_stock_packaging" id="menu_product_ul_form_action" parent="prod_config_main" sequence="3"/>

        <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="arch" type="xml">
                <tree string="Packaging">
                    <field name="sequence" widget="handle"/>
                    <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="arch" type="xml">
                <form string="Packaging" version="7.0">
                    <group col="4">
                        <field name="product_id"/>
                        <newline/>
                        <field name="ean"/>
                        <field name="sequence" invisible="1"/>
                        <newline/>
                        <field name="qty"/>
                        <field name="ul"/>
                        <field name="weight_ul"/>
                        <separator colspan="4" string="Palletization"/>
                        <field name="ul_qty"/>
                        <field name="rows"/>
                        <field name="weight"/>
                        <separator colspan="4" string="Pallet Dimension"/>
                        <field name="height"/>
                        <field name="width"/>
                        <field name="length"/>
                        <separator colspan="4" string="Other Info"/>
                        <field colspan="4" name="name"/>
                    </group>
                </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="arch" type="xml">
                <form string="Supplier Information" version="7.0">
                    <group col="4">
                        <field name="name" context="{'default_customer': 0, 'search_default_supplier': 1, 'default_supplier': 1}"/>
                        <field name="sequence"/>
                        <field name="product_name"/>
                        <field name="product_code"/>
                        <field name="min_qty"/>
                        <field name="product_uom" groups="product.group_uom"/>
                        <field name="delay"/>
                        <field name="company_id" groups="base.group_multi_company" widget="selection"/>
                    </group>
                    <p groups="product.group_purchase_pricelist" class="oe_grey">The prices below will only be taken into account when your pricelist is set as based on supplier prices.</p>
                    <field groups="product.group_purchase_pricelist" name="pricelist_ids">
                        <tree editable="bottom" string="Pricelist">
                            <field name="min_quantity"/>
                            <field name="price"/>
                        </tree>
                        <form version="7.0">
                            <group>
                                <field name="min_quantity"/>
                                <field name="price"/>
                            </group>
                        </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="arch" type="xml">
                <tree string="Supplier Information">
                    <field name="sequence" widget="handle"/>
                    <field name="name"/>
                    <field name="delay"/>
                    <field name="min_qty"/>
                    <field name="company_id" groups="base.group_multi_company" widget="selection"/>
                </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="arch" type="xml">
                <form string="Product Variant" version="7.0">
                    <group col="4">
                        <field name="product_tmpl_id"/>
                        <field name="active"/>
                        <field name="variants"/>
                        <field name="default_code"/>
                        <field name="price_margin"/>
                        <field name="price_extra"/>
                    </group>
                </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="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="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="arch" type="xml">
                <form string="Product Template" version="7.0">
                    <label for="name" class="oe_edit_only"/>
                    <h1><field name="name"/></h1>
                    <label for="categ_id" class="oe_edit_only"/>
                    <h2><field name="categ_id"/></h2>
                    <notebook>
                        <page string="Information">
                        <group>
                            <group string="Product Type">
                                <field name="sale_ok"/>
                            </group>
                            <group string="Procurement">
                                <field name="type"/>
                            </group>

                            <group string="Base Prices">
                                <field name="list_price"/>
                                <field name="standard_price" attrs="{'readonly':[('cost_method','=','average')]}"/>
                                <field name="cost_method"/>
                            </group>

                            <group string="Weights">
                                <field digits="(14, 3)" name="volume" attrs="{'readonly':[('type','=','service')]}"/>
                                <field digits="(14, 3)" name="weight" attrs="{'readonly':[('type','=','service')]}"/>
                                <field digits="(14, 3)" name="weight_net" attrs="{'readonly':[('type','=','service')]}"/>
                            </group> 

                            <group name="status" string="Status">
                                <field name="state"/>
                                <field name="product_manager"/>
                            </group>

                            <group name="uom" string="Unit of Measure">
                                <field name="uom_id" on_change="onchange_uom(uom_id,uom_po_id)" groups="product.group_uom"/>
                                <field name="uom_po_id"/>
                            </group>

                            <group name="uos" groups="product.group_uom" string="Second Unit of Measure">
                                <field name="uos_id"/>
                                <field name="uos_coeff"/>
                                <field name="mes_type"/>
                            </group>
                        </group>
                        </page>
                        <page string="Procurement &amp; Locations">
                            <group>
                                <group name="delay" string="Delays">
                                    <label for="produce_delay"/>
                                    <div>
                                        <field name="produce_delay" class="oe_inline"/> days
                                    </div>
                                    <field name="warranty"/>
                                </group>
                            </group>

                        </page>
                        <page string="Suppliers">
                            <field name="seller_ids"/>
                        </page>
                        <page string="Descriptions">
                            <separator string="Internal Description"/>
                            <field name="description"/>
                            <separator string="Sale Description"/>
                            <field name="description_sale"/>
                            <separator string="Purchase Description"/>
                            <field name="description_purchase"/>
                        </page>
                    </notebook>
                </form>
            </field>
        </record>

        <record id="product_template_action_tree" model="ir.actions.act_window">
            <field name="name">Product Templates</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">product.template</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="product_template_tree_view"/>
        </record>

    </data>
</openerp>
