Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
3116 มุมมอง

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.

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

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 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

You can try this in record rule i think it's help you [('user_id','=',user.id)] 

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ย. 19
3227
2
ก.พ. 19
7437
1
ส.ค. 19
3072
1
ก.ค. 19
4035
2
ก.ค. 23
5663