跳至內容
選單
此問題已被標幟
2 回覆
5285 瀏覽次數

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
3616
1
6月 16
6125
7
10月 21
11655
1
11月 19
3744
5
9月 18
9251