콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3 답글
1348 화면

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
1월 17
3268
4
2월 24
11448
0
11월 23
1404
1
6월 23
1934
2
4월 23
2607