コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1648 ビュー

I'm trying to filter out a contact record.
For example the OdooBot contact/partner record - it will have id=2

I have created a new group:

'mcag

added my user: 

'user1' id=8

added access rights:

res.partner.mcagContact
(res.partner)
 read: ✅ write: ✅ create: - delete: -

added a record rule for the same model with the same permissions, with the domain:
['&', '&', ('id', '!=', 2), ('some_field_in_res_partner', '=', user.company_id.id), ('some_field_in_res_partner', '!=', False)]

why is the user still trying to access the record with id=2 if I specifically wrote in the domain that should be out? 


when I'm accessing contacts list I get: 

Access Denied by record rules for operation: read on record ids: [2], uid: 8, model: res.partner


What is wrong with the above, or how to solve this behaviour?Thanks! 

           

アバター
破棄
関連投稿 返信 ビュー 活動
2
11月 24
1624
2
3月 25
6232
1
10月 24
3391
2
1月 24
3744
0
1月 24
1881