跳至内容
菜单
此问题已终结
2 回复
5217 查看

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?

形象
丢弃
最佳答案

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

形象
丢弃
最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
0
3月 15
3563
1
6月 16
6063
7
10月 21
11602
1
11月 19
3646
5
9月 18
9169