تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
1279 أدوات العرض

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

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
يناير 17
3216
4
فبراير 24
11352
0
نوفمبر 23
1369
1
يونيو 23
1890
2
أبريل 23
2526