This question has been flagged
1 Reply
5268 Views

how to hide a sub menu in openerp v7.0. eg. i want to hide Settings->Technical->userinterface & database structure.

thanks in advance..

Avatar
Discard
Best Answer

Hi,

  • Make security.xml file and add this file in __openerp__.py
  • Make group as per following,

    <record id="group_hide_menu" model="res.groups">
            <field name="name">Hide Menu</field>
        </field>
    
    <record id="base.next_id_9" model="ir.ui.menu">
        <field eval="[(6,0,[ref('group_hide_menu)])]" name="groups_id"/>
    </record>
    

Hope it work for you.

Avatar
Discard

Hi charlesraj, if your problem is solved, then please mark my answer as solved. Thanks...:)

Author

Hi. Thanks for answer. I create a new group and add the menu items (menu items to be hided) to its menu. Some menus will be hided an some others are partially hided. eg: userinterface menu will be fully hided but database structure will not be hided fully.