跳至內容
選單
此問題已被標幟
1 回覆
9944 瀏覽次數

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
6月 17
8532
7
10月 24
7669
1
9月 24
1300
1
4月 24
1885
0
6月 22
328