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

How to hide custom menu based on debug mode?

アバター
破棄
最善の回答

add attribute in the menuitem like below

groups="base.group_no_one" 

アバター
破棄
著作者

<menuitem id="menu_asset_depreciation_wizard"
name="Generate Assets Entries"
action="action_asset_depreciation_wizard"
parent="account.menu_finance_entries_generate_entries"
sequence="111"
groups="base.group_no_one"/>
i have added still menu is not hided

著作者 最善の回答

i have given..still not working


アバター
破棄

Many places in odoo use that,
https://github.com/odoo/odoo/blob/16.0/addons/account/views/account_menuitem.xml#L61
Try reset hard cache your browser also

upgrade module and try open another browser tab

Why i have posted the answer first and Mr Malviya get the best answer :( ?

最善の回答

You can add groups="base.group_no_one"

It will works

アバター
破棄
関連投稿 返信 ビュー 活動
2
1月 17
3216
4
2月 24
11346
0
11月 23
1368
1
6月 23
1890
2
4月 23
2526