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.
|
|
<?xml version="1.0" encoding="utf-8"?> <openerp> <data> <!--
Configuring authorities is complicated, because there is a mismatch between the record ID's used for group names, and the actual names: group_user - Employee group_sale_salesman - User 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'))]" /> </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'))]" /> </record>
<!-- Add menu item to show all relations --> <record id="action_all_partner_form" model="ir.actions.act_window"> <field name="name">All partners</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">kanban,tree,form</field> <field name="search_view_id" ref="base.view_res_partner_filter"/> </record> <menuitem id="menu_all_partner_form" parent="base.menu_sales" action="action_all_partner_form" sequence="21" />
<!-- 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 --> <record id="action_company_form" model="ir.actions.act_window"> <field name="name">Organisations</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">kanban,tree,form</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="help" type="html"> <p class="oe_view_nocontent_create" >Click to add a company in your address book.</p></field> </record> <menuitem id="menu_company_form" parent="base.menu_sales" action="action_company_form" sequence="31" />
<!-- Add menu item to show only persons --> <record id="action_person_form" model="ir.actions.act_window"> <field name="name">Persons</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">kanban,tree,form</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="help" type="html"> <p class="oe_view_nocontent_create" >Click to add a person in your address book.</p></field> </record> <menuitem id="menu_person_form" parent="base.menu_sales" action="action_person_form" sequence="41" /> </data> </openerp>
|