ソースを参照

Ajustes de menu

deisy 5 年 前
コミット
b90f428744
2 ファイル変更10 行追加11 行削除
  1. 1 0
      __openerp__.py
  2. 9 11
      views/menus_view.xml

+ 1 - 0
__openerp__.py

@@ -7,6 +7,7 @@
 'depends':[
     'base',
     'crm',
+    'crm_claim',
     'marketing',
     'web',
     'partner_social_fields',

+ 9 - 11
views/menus_view.xml

@@ -38,19 +38,17 @@
       <field name="groups_id" eval="[(6,0,[ref('make_invisible')])]"/>
     </record>
 
-
-    <!-- Change menu name -->
-    <record model="ir.ui.menu" id="base.menu_crm_config_lead">
-      <field name="name">Oportunidades</field>
-    </record>
-
     <!-- Add new menus -->
-    <menuitem name="CRM" id="base.menu_crm" parent="base.menu_base_partner" sequence="1"/>
+    <menuitem name="CRM" id="main_crm_menu"  sequence="80"/>
+      <menuitem name="CRM" id="submenu_crm1" parent="main_crm_menu" sequence="1"/>
+      <!-- Change menu path -->
+        <menuitem id="crm.menu_crm_opportunities" parent="submenu_crm1" sequence="1"/>
+        <menuitem name="Tareas" id="menu_crm_task" parent="submenu_crm1" action="eiru_crm.crm_task_from_partner" groups="base.group_sale_salesman" sequence="2"/>
+        <menuitem id="crm_claim.menu_crm_case_claims" parent="submenu_crm1" sequence="3"/>
 
-    <menuitem name="Tareas" id="menu_crm_task" parent="base.menu_crm" sequence="50"
-      action="eiru_crm.crm_task_from_partner" groups="base.group_sale_salesman"/>
+      <menuitem name="Configuración" id="submenu_crm2" parent="main_crm_menu" sequence="2"/>
+        <menuitem id="base.menu_crm_config_lead" name="Oportunidades" parent="submenu_crm2" sequence="1"/>
+        <menuitem id="crm_claim.menu_config_claim" parent="submenu_crm2" sequence="2"/>
 
-      <!-- Change menu path -->
-      <menuitem id="crm.menu_crm_opportunities" parent="base.menu_crm"/>
   </data>
 </openerp>