Raimon Esteve (Zikzakmedia) avatar Raimon Esteve (Zikzakmedia) committed b9fe16e

Bloc xml by model + icons list some menus

Comments (0)

Files changed (1)

     -->
 <tryton>
     <data>
+        <!-- product.product -->
         <record model="ir.ui.view" id="product_view_form">
             <field name="model">product.product</field>
             <field name="inherit" ref="product.product_view_form"/>
             </field>
         </record>
 
+        <!-- product.template -->
         <record model="ir.ui.view" id="template_view_form">
             <field name="model">product.template</field>
             <field name="inherit" ref="product.template_view_form"/>
             <field name="name">Product Template</field>
             <field name="res_model">product.template</field>
         </record>
-
         <record model="ir.action.act_window.view" id="act_template_list_view">
             <field name="sequence" eval="100"/>
-            <field name="view" ref="template_view_tree"/>
+            <field name="view" ref="product.template_view_tree"/>
             <field name="act_window" ref="act_template_form"/>
         </record>
-
         <record model="ir.action.act_window.view" id="act_template_form_view">
             <field name="sequence" eval="110"/>
-            <field name="view" ref="template_view_form"/>
+            <field name="view" ref="product.template_view_form"/>
             <field name="act_window" ref="act_template_form"/>
         </record>
-
         <menuitem name="Templates" parent="product.menu_main_product"
             sequence="0" id="menu_product_templates" action="act_template_form"/>
-
-        <record model="ir.action.act_window" id="act_product_attribute_form">
-            <field name="name">Product Attributes</field>
-            <field name="res_model">product.attribute</field>
+        
+        <record model="ir.action.act_window" id="act_relate_form">
+            <field name="name">Product Variants</field>
+            <field name="res_model">product.product</field>
+            <field name="domain">[('template', '=', Eval('active_id'))]</field>
+        </record>
+        
+        <record model="ir.action.keyword" id="act_open_products">
+            <field name="keyword">form_relate</field>
+            <field name="model">product.template,-1</field>
+            <field name="action" ref="act_relate_form" />
         </record>
 
+        <!-- product.attribute -->
         <record model="ir.ui.view" id="product_attribute_view_form">
             <field name="model">product.attribute</field>
             <field name="type">form</field>
                 ]]>
             </field>
         </record>
+
+        <record model="ir.action.act_window" id="act_product_attribute_form">
+            <field name="name">Product Attributes</field>
+            <field name="res_model">product.attribute</field>
+        </record>
+        <record model="ir.action.act_window.view" id="act_product_attribute_list_view">
+            <field name="sequence" eval="100"/>
+            <field name="view" ref="product_attribute_view_tree"/>
+            <field name="act_window" ref="act_product_attribute_form"/>
+        </record>
+        <record model="ir.action.act_window.view" id="act_product_attribute_form_view">
+            <field name="sequence" eval="110"/>
+            <field name="view" ref="product_attribute_view_form"/>
+            <field name="act_window" ref="act_product_attribute_form"/>
+        </record>
         
         <menuitem name="Product Attributes" id="menu_product_attribute"
             parent="menu_product_configuration" sequence="10"
-            action="act_product_attribute_form"/>
-        
+            action="act_product_attribute_form"/>        
         <record model="ir.ui.menu-res.group"
             id="menu_product_attribute_group">
             <field name="menu" ref="menu_product_attribute"/>
             <field name="group" ref="product.group_product_admin"/>
         </record>
 
+        <!-- product.attribute.value -->
         <record model="ir.ui.view" id="product_attribute_value_view_form">
             <field name="model">product.attribute.value</field>
             <field name="type">form</field>
                 ]]>
             </field>
         </record>
-        
-        <record model="ir.action.act_window" id="act_relate_form">
-            <field name="name">Product Variants</field>
-            <field name="res_model">product.product</field>
-            <field name="domain">[('template', '=', Eval('active_id'))]</field>
-        </record>
-        
-        <record model="ir.action.keyword" id="act_open_products">
-            <field name="keyword">form_relate</field>
-            <field name="model">product.template,-1</field>
-            <field name="action" ref="act_relate_form" />
-        </record>
-        
     </data>
 </tryton>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.