تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
4619 أدوات العرض

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
فبراير 24
2258
1
أكتوبر 21
2859
9
سبتمبر 21
18472
1
مارس 15
4536
0
مارس 15
3948