Odoo - OpenERP - How to make Menu (menuitems) Inheritance in Odoo ?

Support
Support
5000
| 2 1 2
Asked on 8/15/15, 7:46 AM
0
vote
3479 Views

Firstly, You might be knowing that menu entries are usually defined with the ‘menuitem’ XML tag.
i.e.

<menuitem name=”menuName” id=”menu_id” … />

You got menuitem then you can easily inherit and make it compatible as per your requirements.
Like,
1. Adding New Attributes.
2. Removing Old Attributes.
3. Modifying Existing Attributes.

To redefine menu item you don’t need xpath , simply redefine that in your xml file, with correct id reference.

You just have to add original module name followed by “.”(Dot) followed by original menuitem ID.

Syntax :

<menuitem id=”module_name.menu_id” name=”menuName” … />

Example:

Original:

<menuitem name=”Human Resources”
id=”menu_hr_root”
groups=”base.group_hr_manager,base.group_hr_user,base.group_user”
sequence=”90″/>

you can evict group from Human Resources menuitem like this:-

Inherited:
<menuitem name=”Human Resources”
id=”hr.menu_hr_root”
sequence=”90″/>

Support
Support
5000
| 2 1 2
Answered on 8/15/15, 7:47 AM
0
vote

Your answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

Ask a Question

Keep Informed

About This Forum

This forum is for HiTechnologia Employees & just Odoo general knowledge purpose only.

Read Guidelines

Question tools

3 follower(s)

Stats

Asked: 8/15/15, 7:46 AM
Seen: 3479 times
Last updated: 8/15/15, 7:47 AM