Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
1270 Lượt xem

How to hide custom menu based on debug mode?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

add attribute in the menuitem like below

groups="base.group_no_one" 

Ảnh đại diện
Huỷ bỏ
Tác giả

<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

Tác giả Câu trả lời hay nhất

i have given..still not working


Ảnh đại diện
Huỷ bỏ

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

Câu trả lời hay nhất

You can add groups="base.group_no_one"

It will works

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 1 17
3216
4
thg 2 24
11346
0
thg 11 23
1367
1
thg 6 23
1890
2
thg 4 23
2526