kid
kid

Reputation: 153

How to delete a menuitem in openerp from a customized module

How to delete an existing menuitem from inherited module.

Here i have made a new module and i have inherited crm module. I just want to remove Leads from menuitem can anyone help me out?????

Upvotes: 1

Views: 2458

Answers (3)

Thazin Khaing
Thazin Khaing

Reputation: 121

One of these will help to delete menu for Leads.

<delete model="ir.ui.menu" id="base.menu_crm_config_lead" /> 
<delete model="ir.ui.menu" id="crm.menu_crm_lead_stage_act" />
<delete model="ir.ui.menu" id="crm.menu_crm_lead_categ" /> 

Upvotes: 1

OmaL
OmaL

Reputation: 5044

As Arya mentioned, you can use delete tag to delete a menu. But if you delete a menuitem having child menus, all its child menus will come to top. So its better to move the parent menu to a group. So all the users who belongs to this group can only view these menus

Upvotes: 3

Sudhir Arya
Sudhir Arya

Reputation: 3743

You can use delete tag in your xml to remove existing menuitem.

<delete id="module_name.xml_menuitem_id" model="ir.ui.menu"/>

Upvotes: 5

Related Questions