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

I have multiple users in same company. I want that a purchase order from one user will only be visible to the user who created it or his manager and no one else.PO must be visible for the employee in a certain department. In the employee module i have assign them departments and each user have a manager. 

I can restrict it for user only by using [('create_uid','=',user_id)] but i am unable to link it with employee. Please help and if you think that there can be another work around for this the do  share.

Thanks in advance.

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

I have found answer to my question ['|',[('create_uid','=',user.id)],[('create_uid','=','second user')]] if u wanna add another user in this domain u have to add another '|' in the start. For help you can use user defined filters and u will get idea about how to write it properly. Thank You 

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

You can try this in record rule i think it's help you [('user_id','=',user.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 9 19
3235
2
thg 2 19
7462
1
thg 8 19
3085
1
thg 7 19
4084
2
thg 7 23
5685