Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
4467 Представления

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
2148
1
окт. 21
2736
9
сент. 21
18320
1
мар. 15
4418
0
мар. 15
3821