Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
5292 Prikazi

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
Opusti
Best Answer

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

Avatar
Opusti
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
0
mar. 15
3626
1
jun. 16
6128
7
okt. 21
11676
1
nov. 19
3748
5
sep. 18
9255