İçereği Atla
Menü
Bu soru işaretlendi
3 Cevaplar
1263 Görünümler

How to hide custom menu based on debug mode?

Avatar
Vazgeç
En İyi Yanıt

add attribute in the menuitem like below

groups="base.group_no_one" 

Avatar
Vazgeç
Üretici

<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

Üretici En İyi Yanıt

i have given..still not working


Avatar
Vazgeç

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

En İyi Yanıt

You can add groups="base.group_no_one"

It will works

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Oca 17
3215
4
Şub 24
11346
0
Kas 23
1366
1
Haz 23
1890
2
Nis 23
2523