跳至内容
菜单
此问题已终结
1 回复
4459 查看

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

形象
丢弃
相关帖文 回复 查看 活动
1
2月 24
2135
1
10月 21
2728
9
9月 21
18299
1
3月 15
4411
0
3月 15
3815