Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3 Ответы
1286 Представления

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
3219
4
февр. 24
11355
0
нояб. 23
1370
1
июн. 23
1894
2
апр. 23
2528