Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
4555 Переглядів

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
2223
1
жовт. 21
2787
9
вер. 21
18385
1
бер. 15
4468
0
бер. 15
3898