hide_menu.xml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <!--
  5. ====================================
  6. HIDE MENUS
  7. ====================================
  8. -->
  9. <menuitem
  10. name="Configuraciones Técnicas"
  11. id="menu_hide"
  12. sequence="200"/>
  13. <record model="ir.ui.menu" id="eiru_base_menu.menu_hide">
  14. <field name="groups_id" eval="[(6,0, [ref('base.group_system'), ref('base.group_erp_manager')])]"/>
  15. </record>
  16. <!-- Ventas -->
  17. <menuitem
  18. name="Sales"
  19. id="base.menu_base_partner"
  20. parent="eiru_base_menu.menu_hide"
  21. sequence="0"/>
  22. <!-- Compras -->
  23. <menuitem
  24. name="Purchases"
  25. id="base.menu_purchase_root"
  26. parent="eiru_base_menu.menu_hide"
  27. sequence="1"/>
  28. <!-- Stock -->
  29. <menuitem
  30. name="Warehouse"
  31. id="stock.menu_stock_root"
  32. parent="eiru_base_menu.menu_hide"
  33. sequence="2"/>
  34. <!-- Finanzas -->
  35. <menuitem
  36. name="Finanzas"
  37. id="account.menu_finance"
  38. parent="eiru_base_menu.menu_hide"
  39. sequence="3"/>
  40. <!-- RRHH -->
  41. <menuitem
  42. name="RRHH"
  43. id="hr.menu_hr_root"
  44. parent="eiru_base_menu.menu_hide"
  45. sequence="4"/>
  46. <!-- Proyecto -->
  47. <menuitem
  48. name="Proyecto"
  49. id="base.menu_main_pm"
  50. parent="eiru_base_menu.menu_hide"
  51. sequence="5"/>
  52. <!-- Fabricacion -->
  53. <menuitem
  54. name="Fabricacion"
  55. id="base.menu_mrp_root"
  56. parent="eiru_base_menu.menu_hide"
  57. sequence="3"/>
  58. <record id="make_invisible" model="res.groups">
  59. <field name="name">Ocultar Menus</field>
  60. </record>
  61. <!-- menu informe -->
  62. <record id="base.menu_reporting" model="ir.ui.menu">
  63. <field name="groups_id" eval="[(6,0,[ref('make_invisible')])]"/>
  64. </record>
  65. <!-- menu informes -->
  66. <record id="eiru_reports.eiru_reports_main_menu" model="ir.ui.menu">
  67. <field name="groups_id" eval="[(6,0,[ref('make_invisible')])]"/>
  68. </record>
  69. <!-- menu mensajeria -->
  70. <record id="mail.mail_feeds_main" model="ir.ui.menu">
  71. <field name="groups_id" eval="[(6,0,[ref('make_invisible')])]"/>
  72. </record>
  73. </data>
  74. </openerp>