Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
9933 มุมมอง

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.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มิ.ย. 17
8521
7
ต.ค. 24
7654
1
ก.ย. 24
1298
lock user account after login failure แก้ไขแล้ว
1
เม.ย. 24
1880
0
มิ.ย. 22
328