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

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
3218
4
2月 24
11354
0
11月 23
1369
1
6月 23
1894
2
4月 23
2528