Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
9949 Lượt xem

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.


 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

try this:

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

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks Axel

worked then?

Tác giả

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.

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 6 17
8540
7
thg 10 24
7675
1
thg 9 24
1304
1
thg 4 24
1893
0
thg 6 22
328