Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3 Risposte
1285 Visualizzazioni

How to hide custom menu based on debug mode?

Avatar
Abbandona
Risposta migliore

add attribute in the menuitem like below

groups="base.group_no_one" 

Avatar
Abbandona
Autore

<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

Autore Risposta migliore

i have given..still not working


Avatar
Abbandona

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

Risposta migliore

You can add groups="base.group_no_one"

It will works

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
gen 17
3219
4
feb 24
11354
0
nov 23
1369
1
giu 23
1894
2
apr 23
2528