Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
1276 Widoki

How to hide custom menu based on debug mode?

Awatar
Odrzuć
Najlepsza odpowiedź

add attribute in the menuitem like below

groups="base.group_no_one" 

Awatar
Odrzuć
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 Najlepsza odpowiedź

i have given..still not working


Awatar
Odrzuć

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

Najlepsza odpowiedź

You can add groups="base.group_no_one"

It will works

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
sty 17
3216
4
lut 24
11352
0
lis 23
1369
1
cze 23
1890
2
kwi 23
2526