Ir al contenido
Menú
Se marcó esta pregunta
3 Respuestas
1275 Vistas

How to hide custom menu based on debug mode?

Avatar
Descartar
Mejor respuesta

add attribute in the menuitem like below

groups="base.group_no_one" 

Avatar
Descartar
Autor

<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

Autor Mejor respuesta

i have given..still not working


Avatar
Descartar

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

Mejor respuesta

You can add groups="base.group_no_one"

It will works

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
ene 17
3216
4
feb 24
11347
0
nov 23
1369
1
jun 23
1890
2
abr 23
2526