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

I'm using Odoo 8. I've created a Record Rule (MyCustomers) with following rule

['|',('user_id','=','False'), ('user_id','=','user_id')] and assigned it to Sales/See Own Leads group. After setting this Rule, I get an error each time I login and doesn't show any customers & doesn't allow me to create customer.


 

الصورة الرمزية
إهمال
أفضل إجابة

try this:

['|',('user_id','=',False), ('user_id','=',user.id)] 

الصورة الرمزية
إهمال
الكاتب

Thanks Axel

worked then?

الكاتب

Yes Axel, it worked. Thank you

could you upvote the answer?

Initially, this filter seems to work for me, but when trying to open partner view, I get res.user operation read warning again. I literally gave access to res.users model, but nothing happens.

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يونيو 17
8512
7
أكتوبر 24
7647
1
سبتمبر 24
1296
1
أبريل 24
1877
0
يونيو 22
328