Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3 Antwoorden
1262 Weergaven

How to hide custom menu based on debug mode?

Avatar
Annuleer
Beste antwoord

add attribute in the menuitem like below

groups="base.group_no_one" 

Avatar
Annuleer
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 Beste antwoord

i have given..still not working


Avatar
Annuleer

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

Beste antwoord

You can add groups="base.group_no_one"

It will works

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
2
jan. 17
3215
4
feb. 24
11346
0
nov. 23
1366
1
jun. 23
1890
2
apr. 23
2523