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

created new user group inventory clerk. for this group i want to hide the validate button in transfer. 



아바타
취소
베스트 답변

You'll need to modify the view and change either the "groups" attribute or the "invisible" attribute on the button element you're trying to hide conditionally. If you have access to Studio, you can open Studio on the Form view for transfers and then click the Validate button. From there, click the "conditional" beside the "Invisible" checkbox in the left pane. You will want to add to the existing domain to make the button invisible when the user is in the Inventory Clerk group. You can add something like this at the beginning of the existing domain:

['user.groups_id', 'in', your_group_id]

You can achieve the same result by making a small module that will modify the button with view inheritance. Also note that there are actually 2 validate buttons in the view that are shown under different conditions. You can see all the hidden buttons by clicking "Show Invisible Elements" in the View tab of the left sidebar in Studio.

아바타
취소
작성자 베스트 답변

Thanks for your reply, achieved by the condition in studio

[('user_id', '=', my.ID)]

아바타
취소
관련 게시물 답글 화면 활동
1
11월 22
2040
2
7월 22
2289
1
6월 22
3044
1
12월 20
6420
2
12월 22
2857