Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
3 Відповіді
1281 Переглядів

How to hide custom menu based on debug mode?

Аватар
Відмінити
Найкраща відповідь

add attribute in the menuitem like below

groups="base.group_no_one" 

Аватар
Відмінити
Автор

<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

Автор Найкраща відповідь

i have given..still not working


Аватар
Відмінити

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

Найкраща відповідь

You can add groups="base.group_no_one"

It will works

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
січ. 17
3218
4
лют. 24
11353
0
лист. 23
1369
1
черв. 23
1894
2
квіт. 23
2528