You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

110 lines
4.1 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <!--
  4. Configuring authorities is complicated, because there is a
  5. mismatch between the record ID's used for group names, and the
  6. actual names:
  7. base.group_user - Employee
  8. sales_team.group_sale_salesman - User
  9. sales_team.group_sale_sales_manager - Manager
  10. -->
  11. <!-- Provide non-commercial partner menu -->
  12. <menuitem
  13. id="menu_partner_main"
  14. name="Partners"
  15. groups="base.group_user"
  16. sequence="4"
  17. />
  18. <menuitem
  19. id="menu_partner"
  20. name="Partners"
  21. parent="menu_partner_main"
  22. groups="base.group_user"
  23. sequence="4"
  24. />
  25. <!-- Add menu item to show all relations -->
  26. <record id="action_all_partner_form" model="ir.actions.act_window">
  27. <field name="name">All partners</field>
  28. <field name="type">ir.actions.act_window</field>
  29. <field name="res_model">res.partner</field>
  30. <field name="view_type">form</field>
  31. <field name="view_mode">tree,kanban,form</field>
  32. <field name="context">{"search_default_type_relation": 1}</field>
  33. <field name="search_view_id" ref="base.view_res_partner_filter"/>
  34. </record>
  35. <menuitem
  36. id="menu_all_partner_form"
  37. parent="menu_partner"
  38. action="action_all_partner_form"
  39. sequence="11"
  40. />
  41. <!-- Add menu item to show only organisations -->
  42. <record id="action_company_form" model="ir.actions.act_window">
  43. <field name="name">Organisations</field>
  44. <field name="type">ir.actions.act_window</field>
  45. <field name="res_model">res.partner</field>
  46. <field name="view_type">form</field>
  47. <field name="view_mode">tree,kanban,form</field>
  48. <field name="context">{"search_default_type_company": 1,"default_is_company": True}</field>
  49. <field name="search_view_id" ref="base.view_res_partner_filter"/>
  50. <field name="help" type="html">
  51. <p class="oe_view_nocontent_create"
  52. >Click to add an organisation to your address book.</p></field>
  53. </record>
  54. <menuitem
  55. id="menu_company_form"
  56. parent="menu_partner"
  57. action="action_company_form"
  58. sequence="21"
  59. />
  60. <!-- Add menu item to show only persons -->
  61. <record id="action_person_form" model="ir.actions.act_window">
  62. <field name="name">Persons</field>
  63. <field name="type">ir.actions.act_window</field>
  64. <field name="res_model">res.partner</field>
  65. <field name="view_type">form</field>
  66. <field name="view_mode">tree,kanban,form</field>
  67. <field name="context">{"search_default_type_person": 1,"default_is_company": False}</field>
  68. <field name="search_view_id" ref="base.view_res_partner_filter"/>
  69. <field name="help" type="html">
  70. <p class="oe_view_nocontent_create"
  71. >Click to add a person to your address book.</p></field>
  72. </record>
  73. <menuitem
  74. id="menu_person_form"
  75. parent="menu_partner"
  76. action="action_person_form"
  77. sequence="31"
  78. />
  79. <!-- Add menu item to show all relations and other addresses -->
  80. <record id="action_address_form" model="ir.actions.act_window">
  81. <field name="name">All addresses</field>
  82. <field name="type">ir.actions.act_window</field>
  83. <field name="res_model">res.partner</field>
  84. <field name="view_type">form</field>
  85. <field name="view_mode">tree,kanban,form</field>
  86. <field name="search_view_id" ref="base.view_res_partner_filter"/>
  87. <field name="help" type="html">
  88. <p class="oe_view_nocontent_create"
  89. >Click to add item to your address book.</p></field>
  90. </record>
  91. <menuitem
  92. id="menu_address_form"
  93. parent="menu_partner"
  94. action="action_address_form"
  95. sequence="41"
  96. />
  97. <!-- Move address book configuration to partner menu -->
  98. <menuitem
  99. id="sales_team.menu_config_address_book"
  100. name="Contacts"
  101. parent="menu_partner"
  102. sequence="90"
  103. />
  104. </odoo>