[IMP] product: all left menu item became product.template's action
authorChristophe Matthieu <chm@odoo.com>
Mon, 16 Jun 2014 15:16:50 +0000 (17:16 +0200)
committerChristophe Matthieu <chm@odoo.com>
Mon, 16 Jun 2014 15:16:50 +0000 (17:16 +0200)
addons/mrp/mrp_view.xml
addons/point_of_sale/point_of_sale_view.xml
addons/purchase/purchase_view.xml
addons/stock/stock_view.xml

index 5831966..8aae006 100644 (file)
             </field>
         </record>
         
-        <record id="product_supply_method_produce" model="ir.actions.act_window">
+        <record id="product_template_action" model="ir.actions.act_window">
             <field name="name">Products</field>
-            <field name="res_model">product.product</field>
+            <field name="res_model">product.template</field>
             <field name="view_type">form</field>
             <field name="view_mode">kanban,tree,form</field>
             <field name="context">{}</field>
-            <field name="search_view_id" ref="product.product_search_form_view"/>
         </record>
         <!-- BOM menus -->
 
             sequence="10"/>
        <menuitem name="Products" 
             id="menu_mrp_product_form" 
-            action="product_supply_method_produce"
+            action="product_template_action"
             parent="menu_mrp_bom"/>
         <menuitem
             action="mrp_bom_form_action2"
index 9103cbd..af0a815 100644 (file)
         <menuitem parent="menu_point_of_sale" id="menu_point_ofsale" action="action_pos_pos_form" sequence="2" groups="group_pos_manager,group_pos_user"/>
         <menuitem name="Products" id="menu_point_of_sale_product" parent="menu_point_root" sequence="15" />
 
-        <record id="product_normal_action" model="ir.actions.act_window">
+        <record id="product_template_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="res_model">product.template</field>
             <field name="view_type">form</field>
             <field name="view_mode">tree,form,kanban</field>
             <field name="context" eval="{}"/>
             <field name="domain" eval="[('available_in_pos','&lt;&gt;',False)]"/>
-            <field name="view_id" ref="product.product_product_tree_view"/>
-            <field name="search_view_id" ref="product.product_search_form_view"/>
             <field name="help" type="html">
               <p class="oe_view_nocontent_create">
                 Click to add a new product.
             </field>
         </record>
         <menuitem
-            action="product_normal_action"
+            action="product_template_action"
             id="menu_pos_products"
             parent="menu_point_of_sale_product" sequence="2"/>
 
index 1320764..5062ecc 100644 (file)
     <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="res_model">product.template</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.product_kanban_view"/>
-        <field name="search_view_id" ref="product.product_search_form_view"/>
         <field name="help" type="html">
           <p class="oe_view_nocontent_create">
             Click to define a new product.
index 66c97aa..fc7a94f 100644 (file)
@@ -12,7 +12,7 @@
         <menuitem id="menu_stock_product" name="Products" parent="menu_stock_root" sequence="6"/>
         <menuitem name="Products by Category" id="menu_product_by_category_stock_form" action="product.product_category_action"
             parent="stock.menu_stock_product" sequence="0" groups="base.group_no_one"/>
-        <menuitem action="product.product_normal_action" id="menu_stock_products_menu" parent="menu_stock_product" sequence="1"/>
+        <menuitem action="product.product_template_action" id="menu_stock_products_menu" parent="menu_stock_product" sequence="1"/>
         <menuitem id="menu_stock_configuration" name="Configuration" parent="menu_stock_root" sequence="15" groups="group_stock_manager"/>
         <menuitem id="menu_warehouse_config" name="Warehouse Management" parent="menu_stock_configuration" sequence="40" groups="base.group_no_one"/>
         <menuitem id="menu_stock_inventory_control" name="Inventory Control" parent="menu_stock_root" sequence="2"/>