Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odpovědi
1264 Zobrazení

How to hide custom menu based on debug mode?

Avatar
Zrušit
Nejlepší odpověď

add attribute in the menuitem like below

groups="base.group_no_one" 

Avatar
Zrušit
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 Nejlepší odpověď

i have given..still not working


Avatar
Zrušit

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

Nejlepší odpověď

You can add groups="base.group_no_one"

It will works

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
led 17
3215
4
úno 24
11346
0
lis 23
1366
1
čvn 23
1890
2
dub 23
2523