コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
5235 ビュー

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
3575
1
6月 16
6079
7
10月 21
11611
1
11月 19
3686
5
9月 18
9177