Browse Source

[IMP] partner_noncommercial. Fully use contacts menu.

12.0
Ronald Portier 6 years ago
committed by Holger Brunn
parent
commit
3ddfc8a6ad
  1. 9
      partner_noncommercial/readme/ROADMAP.rst
  2. 17
      partner_noncommercial/views/menu.xml
  3. 2
      partner_noncommercial/views/res_partner.xml

9
partner_noncommercial/readme/ROADMAP.rst

@ -1,9 +0,0 @@
After installing this module a situation has been encountered where the new
menu's were added to the database, but not shown in the UI. This was due to
partner_left and partner_right not being filled. To solve this, use the
generic solution when the menu-system has been messed up:
#. stop server
#. drop parent_left and parent_right columns from ir_ui_menu table
#. start server while updating base module

17
partner_noncommercial/views/menu.xml

@ -1,29 +1,20 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<odoo> <odoo>
<!-- Provide non-commercial partner menu -->
<menuitem
id="menu_partner_main"
name="Partners"
parent="contacts.menu_contacts"
groups="base.group_user"
sequence="4"
/>
<menuitem <menuitem
id="menu_partner" id="menu_partner"
name="Partners" name="Partners"
parent="menu_partner_main"
groups="base.group_user"
sequence="4"
parent="contacts.menu_contacts"
sequence="11"
/> />
<!-- Add menu item to show all relations -->
<!-- Add menu item to show all partners -->
<record id="action_all_partner_form" model="ir.actions.act_window"> <record id="action_all_partner_form" model="ir.actions.act_window">
<field name="name">All partners</field> <field name="name">All partners</field>
<field name="type">ir.actions.act_window</field> <field name="type">ir.actions.act_window</field>
<field name="res_model">res.partner</field> <field name="res_model">res.partner</field>
<field name="view_type">form</field> <field name="view_type">form</field>
<field name="view_mode">tree,kanban,form</field> <field name="view_mode">tree,kanban,form</field>
<field name="context">{"search_default_type_relation": 1}</field>
<field name="context">{"search_default_type_contact": 1}</field>
<field name="search_view_id" ref="base.view_res_partner_filter"/> <field name="search_view_id" ref="base.view_res_partner_filter"/>
</record> </record>
<menuitem <menuitem

2
partner_noncommercial/views/res_partner.xml

@ -8,7 +8,7 @@
<filter name="type_person" position="before"> <filter name="type_person" position="before">
<filter <filter
string="All partners" string="All partners"
name="type_relation"
name="type_contact"
domain="['|',('is_company','=',1),('type','=','contact')]" domain="['|',('is_company','=',1),('type','=','contact')]"
/> />
</filter> </filter>

Loading…
Cancel
Save