Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
1346 มุมมอง

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
3268
4
ก.พ. 24
11447
0
พ.ย. 23
1404
1
มิ.ย. 23
1934
2
เม.ย. 23
2605