Skip to Content
मेन्यू
This question has been flagged
1 Reply
4396 Views

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

Avatar
Discard
Best Answer

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

Avatar
Discard
Related Posts Replies Views Activity
1
फ़र॰ 24
2089
1
अक्तू॰ 21
2671
9
सित॰ 21
18207
1
मार्च 15
4341
0
मार्च 15
3795