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

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

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

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 2 24
2162
1
thg 10 21
2750
9
thg 9 21
18334
1
thg 3 15
4426
0
thg 3 15
3852