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

I wanna create a "domain_force" with a complex condition (with me). That is a sale person can read, update (write) but not delete records of an other sale person if the in a team. And delete permission will be available only for own records

my code (need to update):

Verify team sale['|', '|', ('user_id', '=', user.id), ('team_id.user_id', '=', user.id),('team_id.member_ids', '=', user.id)]  

I need your help because I don't really understand '|', '&', '&amp'. Thank you so much

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

Hi,

Create a new record rule for sales user group and add domain force like this. So the user can see his own team members orders.


Regards

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.พ. 24
2275
1
ต.ค. 21
2868
9
ก.ย. 21
18511
1
มี.ค. 15
4562
0
มี.ค. 15
3989