|
@ -1,36 +1,27 @@ |
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
<openerp> |
|
|
|
|
|
<data> |
|
|
|
|
|
|
|
|
<odoo> |
|
|
<!-- |
|
|
<!-- |
|
|
Configuring authorities is complicated, because there is a |
|
|
Configuring authorities is complicated, because there is a |
|
|
mismatch between the record ID's used for group names, and the |
|
|
mismatch between the record ID's used for group names, and the |
|
|
actual names: |
|
|
actual names: |
|
|
group_user - Employee |
|
|
|
|
|
group_sale_salesman - User |
|
|
|
|
|
group_sale_sales_manager - Manager |
|
|
|
|
|
|
|
|
base.group_user - Employee |
|
|
|
|
|
sales_team.group_sale_salesman - User |
|
|
|
|
|
sales_team.group_sale_sales_manager - Manager |
|
|
--> |
|
|
--> |
|
|
|
|
|
|
|
|
<!-- Make Partners menu available to all employee's. --> |
|
|
|
|
|
<record |
|
|
|
|
|
id="base.menu_base_partner" |
|
|
|
|
|
model="ir.ui.menu" |
|
|
|
|
|
> |
|
|
|
|
|
<field |
|
|
|
|
|
name="groups_id" |
|
|
|
|
|
eval="[(4,ref('base.group_user'))]" |
|
|
|
|
|
|
|
|
<!-- Provide non-commercial partner menu --> |
|
|
|
|
|
<menuitem |
|
|
|
|
|
id="menu_partner_main" |
|
|
|
|
|
name="Partners" |
|
|
|
|
|
groups="base.group_user" |
|
|
|
|
|
sequence="4" |
|
|
/> |
|
|
/> |
|
|
</record> |
|
|
|
|
|
|
|
|
|
|
|
<!-- Limit customer menu to only sales persons. --> |
|
|
|
|
|
<record |
|
|
|
|
|
id="base.menu_partner_form" |
|
|
|
|
|
model="ir.ui.menu" |
|
|
|
|
|
> |
|
|
|
|
|
<field |
|
|
|
|
|
name="groups_id" |
|
|
|
|
|
eval="[(4,ref('base.group_sale_salesman'))]" |
|
|
|
|
|
|
|
|
<menuitem |
|
|
|
|
|
id="menu_partner" |
|
|
|
|
|
name="Partners" |
|
|
|
|
|
parent="menu_partner_main" |
|
|
|
|
|
groups="base.group_user" |
|
|
|
|
|
sequence="4" |
|
|
/> |
|
|
/> |
|
|
</record> |
|
|
|
|
|
|
|
|
|
|
|
<!-- Add menu item to show all relations --> |
|
|
<!-- Add menu item to show all relations --> |
|
|
<record id="action_all_partner_form" model="ir.actions.act_window"> |
|
|
<record id="action_all_partner_form" model="ir.actions.act_window"> |
|
@ -38,41 +29,35 @@ |
|
|
<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">kanban,tree,form</field> |
|
|
|
|
|
|
|
|
<field name="view_mode">tree,kanban,form</field> |
|
|
|
|
|
<field name="context">{"search_default_type_relation": 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 |
|
|
id="menu_all_partner_form" |
|
|
id="menu_all_partner_form" |
|
|
parent="base.menu_sales" |
|
|
|
|
|
|
|
|
parent="menu_partner" |
|
|
action="action_all_partner_form" |
|
|
action="action_all_partner_form" |
|
|
sequence="21" |
|
|
|
|
|
|
|
|
sequence="11" |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
<!-- Note on formatting: |
|
|
|
|
|
Make sure there is no unneeded whitespace whatever in the |
|
|
|
|
|
contents of a help field. Because that will become part of the |
|
|
|
|
|
pot file on exporting a language, and make translation very |
|
|
|
|
|
cumbersome. |
|
|
|
|
|
--> |
|
|
|
|
|
|
|
|
|
|
|
<!-- Add menu item to show only organisations --> |
|
|
<!-- Add menu item to show only organisations --> |
|
|
<record id="action_company_form" model="ir.actions.act_window"> |
|
|
<record id="action_company_form" model="ir.actions.act_window"> |
|
|
<field name="name">Organisations</field> |
|
|
<field name="name">Organisations</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">kanban,tree,form</field> |
|
|
|
|
|
|
|
|
<field name="view_mode">tree,kanban,form</field> |
|
|
<field name="context">{"search_default_type_company": 1,"default_is_company": True}</field> |
|
|
<field name="context">{"search_default_type_company": 1,"default_is_company": True}</field> |
|
|
<field name="search_view_id" ref="base.view_res_partner_filter"/> |
|
|
<field name="search_view_id" ref="base.view_res_partner_filter"/> |
|
|
<field name="help" type="html"> |
|
|
<field name="help" type="html"> |
|
|
<p class="oe_view_nocontent_create" |
|
|
<p class="oe_view_nocontent_create" |
|
|
>Click to add a company in your address book.</p></field> |
|
|
|
|
|
|
|
|
>Click to add an organisation to your address book.</p></field> |
|
|
</record> |
|
|
</record> |
|
|
<menuitem |
|
|
<menuitem |
|
|
id="menu_company_form" |
|
|
id="menu_company_form" |
|
|
parent="base.menu_sales" |
|
|
|
|
|
|
|
|
parent="menu_partner" |
|
|
action="action_company_form" |
|
|
action="action_company_form" |
|
|
sequence="31" |
|
|
|
|
|
|
|
|
sequence="21" |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
<!-- Add menu item to show only persons --> |
|
|
<!-- Add menu item to show only persons --> |
|
@ -81,18 +66,45 @@ |
|
|
<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">kanban,tree,form</field> |
|
|
|
|
|
|
|
|
<field name="view_mode">tree,kanban,form</field> |
|
|
<field name="context">{"search_default_type_person": 1,"default_is_company": False}</field> |
|
|
<field name="context">{"search_default_type_person": 1,"default_is_company": False}</field> |
|
|
<field name="search_view_id" ref="base.view_res_partner_filter"/> |
|
|
<field name="search_view_id" ref="base.view_res_partner_filter"/> |
|
|
<field name="help" type="html"> |
|
|
<field name="help" type="html"> |
|
|
<p class="oe_view_nocontent_create" |
|
|
<p class="oe_view_nocontent_create" |
|
|
>Click to add a person in your address book.</p></field> |
|
|
|
|
|
|
|
|
>Click to add a person to your address book.</p></field> |
|
|
</record> |
|
|
</record> |
|
|
<menuitem |
|
|
<menuitem |
|
|
id="menu_person_form" |
|
|
id="menu_person_form" |
|
|
parent="base.menu_sales" |
|
|
|
|
|
|
|
|
parent="menu_partner" |
|
|
action="action_person_form" |
|
|
action="action_person_form" |
|
|
|
|
|
sequence="31" |
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
<!-- Add menu item to show all relations and other addresses --> |
|
|
|
|
|
<record id="action_address_form" model="ir.actions.act_window"> |
|
|
|
|
|
<field name="name">All addresses</field> |
|
|
|
|
|
<field name="type">ir.actions.act_window</field> |
|
|
|
|
|
<field name="res_model">res.partner</field> |
|
|
|
|
|
<field name="view_type">form</field> |
|
|
|
|
|
<field name="view_mode">tree,kanban,form</field> |
|
|
|
|
|
<field name="search_view_id" ref="base.view_res_partner_filter"/> |
|
|
|
|
|
<field name="help" type="html"> |
|
|
|
|
|
<p class="oe_view_nocontent_create" |
|
|
|
|
|
>Click to add item to your address book.</p></field> |
|
|
|
|
|
</record> |
|
|
|
|
|
<menuitem |
|
|
|
|
|
id="menu_address_form" |
|
|
|
|
|
parent="menu_partner" |
|
|
|
|
|
action="action_address_form" |
|
|
sequence="41" |
|
|
sequence="41" |
|
|
/> |
|
|
/> |
|
|
</data> |
|
|
|
|
|
</openerp> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Move address book configuration to partner menu --> |
|
|
|
|
|
<menuitem |
|
|
|
|
|
id="sales_team.menu_config_address_book" |
|
|
|
|
|
name="Contacts" |
|
|
|
|
|
parent="menu_partner" |
|
|
|
|
|
sequence="90" |
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
</odoo> |