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

Hello,

I am working on Odoo online 17.2e saas and I want to hide the 'Find missing transactions' menu item in the actions button on this screen. Is this possible?


Thanks.

아바타
취소
베스트 답변


Try to remove this contextual action if it not works gives group as admin or anything

아바타
취소
베스트 답변
def fields_view_get(self, view_id=None, view_type='form', toolbar=False,
submenu=False):
res = super().fields_view_get(view_id=view_id, view_type=view_type,
toolbar=toolbar, submenu=submenu)
if toolbar:
for action in res['toolbar'].get('action'):
if action.get('xml_id'):
if action['xml_id'] == 'your xml of action' and self._context.get(
'default_type') == 'entry':
res['toolbar']['action'].remove(action)
return res

Try this 

아바타
취소
관련 게시물 답글 화면 활동
0
9월 25
4
3
9월 25
266
1
8월 25
211
1
8월 25
285
0
8월 25
173