Se rendre au contenu
Menu
Cette question a été signalée
3 Réponses
1298 Vues

How to hide custom menu based on debug mode?

Avatar
Ignorer
Meilleure réponse

add attribute in the menuitem like below

groups="base.group_no_one" 

Avatar
Ignorer
Auteur

<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

Auteur Meilleure réponse

i have given..still not working


Avatar
Ignorer

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

Meilleure réponse

You can add groups="base.group_no_one"

It will works

Avatar
Ignorer
Publications associées Réponses Vues Activité
2
janv. 17
3223
4
févr. 24
11368
0
nov. 23
1381
1
juin 23
1908
2
avr. 23
2536