Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
3 Răspunsuri
1284 Vizualizări

How to hide custom menu based on debug mode?

Imagine profil
Abandonează
Cel mai bun răspuns

add attribute in the menuitem like below

groups="base.group_no_one" 

Imagine profil
Abandonează
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 Cel mai bun răspuns

i have given..still not working


Imagine profil
Abandonează

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

Cel mai bun răspuns

You can add groups="base.group_no_one"

It will works

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
ian. 17
3218
4
feb. 24
11354
0
nov. 23
1369
1
iun. 23
1894
2
apr. 23
2528