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

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



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

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.

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

Thanks for your reply, achieved by the condition in studio

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 11 22
2706
2
thg 7 22
3165
1
thg 6 22
3708
1
thg 12 20
7450
2
thg 12 22
3442