Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


deleting a menu item in an inheritance view

on 5/2/13, 2:31 PM 4,949 views

Hi everyone, I'm working with openerp 7.I'm developping a module who is inherite from the human resources.I wan't to delete the menu item "Département" in the module human resources and i don't know how to do it thank's for help


Ray Carnes

--Ray Carnes--
| 9 7 9
Greater Los Angeles, United States
--Ray Carnes--

Senior Odoo Analyst

OpenERP 6.1, 7.0 and Odoo 8.0, 9.0 (Since 2012)

Completed Functional and Technical Training.

Major Skills:

  • Needs Discovery and Requirements Analysis;

  • Function and Technical Specifications;

  • Project Planning;

  • Prototyping and Proof of concepts;

  • Data migration;

  • Configuration & Customization (UI and modules);

  • Integration - data, business logic and service levels;

  • Training and Knowledge transfer;

  • Go Live support;

  • Help desk;

  • Version Migration.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

Ray Carnes
On 5/2/13, 3:24 PM

In an XML file:

<delete model="ir.ui.menu" id="hr.menu_hr_department_tree" />

You can find the name for any Menu under Settings --> User Interface --> Menu Items and, in Developer Mode, open the menu form view and select View Log from the Debug Menu.

The part of the XML ID to the right of the period is what you want to search for.

i tried but it does'nt work;i added this line and it's ok: <delete model="ir.ui.menu" id="hr.menu_hr_department_tree" />

on 5/3/13, 7:49 AM

Thanks. I updated my answer to reflect the correction of my mistake.

Bista Solutions US, Ray Carnes
on 5/3/13, 6:15 PM
On 5/3/13, 7:48 AM

hi,we shoould add this line in the inherite view : <delete model="ir.ui.menu" id="hr.menu_hr_department_tree"/>

wilson zauma
On 3/13/14, 6:58 PM

how can hide a menu for one group specific user?

i like to hide a menu for one group specifity, but when i apply delete this remove all menu for all users, but i want to hide for one groups. explain: i inherit a groups to user from warehouse, but this specifity users i dont want to show menu stock out.

for example i create a new groups users. i define in MY_module_folder/security/my_security.xml

<?xml version="1.0" encoding="utf-8"?>
 <data noupdate="0">
    <record id="group_stock_manager_moseltex" model="res.groups">
        <field name="name">Almacen_mosel Encargado</field>
       <field name="implied_ids" eval="[(4, ref('stock.group_stock_manager'))]"/>

but i want to hide a menu stock out (this code put inside the my_security.xml).

 <record model="ir.ui.menu" id="menu_action_picking_tree">
 <field name="groups_id"  eval="[ref('group_stock_manager_moseltex')]" />

but this is dont work.

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!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)


Asked: 5/2/13, 2:31 PM
Seen: 4949 times
Last updated: 3/16/15, 8:10 AM