Skip to Content
Menu
This question has been flagged
2 Replies
4377 Views

I can hide "sales" menu for existing group "see own leads" like this :

<record id="base.menu_base_partner" model="ir.ui.menu">
        <field name="groups_id" eval="[(3,ref('base.group_sale_salesman'))]"/>
</record>

But for new group (group i created), i am unable to hide "sales" menu. My code :

<record id="base.menu_base_partner" model="ir.ui.menu">
        <field name="groups_id" eval="[(3,ref('module.new_group'))]"/>
</record>

What am i doing wrong?

Avatar
Discard
Best Answer

<record id="base.menu_base_partner" model="ir.ui.menu">
        <field name="groups_id" eval="[(3,ref('base.new_group'))]"/>
</record>

Avatar
Discard
Best Answer

Check this answer for a possible duplicated question, it's basically the same

https://www.odoo.com/forum/help-1/question/correct-way-to-modify-existing-menuitems-their-groups-and-position-93589#answer_93595

Avatar
Discard
Related Posts Replies Views Activity
0
Mar 15
2689
1
Jun 16
5164
7
Oct 21
10408
1
Nov 19
2714
5
Sep 18
7951