Skip to Content
मेन्यू
This question has been flagged
3 Replies
1294 Views

How to hide custom menu based on debug mode?

Avatar
Discard
Best Answer

add attribute in the menuitem like below

groups="base.group_no_one" 

Avatar
Discard
Author

<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

Author Best Answer

i have given..still not working


Avatar
Discard

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 :( ?

Best Answer

You can add groups="base.group_no_one"

It will works

Avatar
Discard
Related Posts Replies Views Activity
2
जन॰ 17
3223
4
फ़र॰ 24
11368
0
नव॰ 23
1381
1
जून 23
1908
2
अप्रैल 23
2534