Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
3 Respostas
1290 Visualizações

How to hide custom menu based on debug mode?

Avatar
Cancelar
Melhor resposta

add attribute in the menuitem like below

groups="base.group_no_one" 

Avatar
Cancelar
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 Melhor resposta

i have given..still not working


Avatar
Cancelar

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

Melhor resposta

You can add groups="base.group_no_one"

It will works

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
2
jan. 17
3219
4
fev. 24
11361
0
nov. 23
1374
1
jun. 23
1899
2
abr. 23
2531