menus_view.xml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="make_invisible" model="res.groups">
  5. <field name="name">Invisible</field>
  6. </record>
  7. <!-- Hide Menus -->
  8. <record id="crm.menu_crm_leads" model="ir.ui.menu">
  9. <field name="groups_id" eval="[(6,0,[ref('make_invisible')])]"/>
  10. </record>
  11. <record id="crm.menu_crm_case_phone" model="ir.ui.menu">
  12. <field name="groups_id" eval="[(6,0,[ref('make_invisible')])]"/>
  13. </record>
  14. <record id="crm.menu_crm_config_phonecall" model="ir.ui.menu">
  15. <field name="groups_id" eval="[(6,0,[ref('make_invisible')])]"/>
  16. </record>
  17. <record id="crm.menu_report_crm_leads_tree" model="ir.ui.menu">
  18. <field name="groups_id" eval="[(6,0,[ref('make_invisible')])]"/>
  19. </record>
  20. <record id="crm.menu_report_crm_phonecalls_tree" model="ir.ui.menu">
  21. <field name="groups_id" eval="[(6,0,[ref('make_invisible')])]"/>
  22. </record>
  23. <record model="ir.actions.act_window" id="crm.crm_case_category_act_oppor11">
  24. <field name="view_mode">kanban,tree,form</field>
  25. </record>
  26. <record id="calendar.menu_calendar_configuration" model="ir.ui.menu">
  27. <field name="groups_id" eval="[(6,0,[ref('make_invisible')])]"/>
  28. </record>
  29. <record id="calendar.mail_menu_calendar" model="ir.ui.menu">
  30. <field name="groups_id" eval="[(6,0,[ref('make_invisible')])]"/>
  31. </record>
  32. <!-- Add new menus -->
  33. <menuitem name="CRM" id="main_crm_menu" sequence="80"/>
  34. <menuitem name="CRM" id="submenu_crm1" parent="main_crm_menu" sequence="1"/>
  35. <!-- Change menu path -->
  36. <menuitem id="crm.menu_crm_opportunities" parent="submenu_crm1" sequence="1"/>
  37. <menuitem name="Tareas" id="menu_crm_task" parent="submenu_crm1" action="eiru_crm.crm_task_from_partner" groups="base.group_sale_salesman" sequence="2"/>
  38. <menuitem id="crm_claim.menu_crm_case_claims" parent="submenu_crm1" sequence="3"/>
  39. <menuitem name="Configuración" id="submenu_crm2" parent="main_crm_menu" sequence="2"/>
  40. <menuitem id="base.menu_crm_config_lead" name="Oportunidades" parent="submenu_crm2" sequence="1"/>
  41. <menuitem id="crm_claim.menu_config_claim" parent="submenu_crm2" sequence="2"/>
  42. </data>
  43. </openerp>