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

There is a record rule for model “Contact” that separates contact books for each company:

​['|','|',('company_id.child_ids','child_of',[user.company_id.id]),('company_id','child_of',[user.company_id.id]),('company_id','=',False)]

And now if I’m a user with current company “A” I can see only contact info for users with current company “A”. 

I would like to change it so that if I’m a user with current company “A” I can see contact info of all the users that have company “A” in theirs Allowed company (rather that only current company).

How do I do this? As far as I can see Contact model does not hold information about Allowed companies and have only current company.

頭像
捨棄
最佳答案

Hello Andrzej,


You can user the following domain in record rule:

[('company_id', 'child_of', user.company_ids.ids)]

 Hope it will helpful for you


Thanks and regards

Haresh Kansara 

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
7月 23
207
1
4月 22
3479
4
12月 23
24332
0
11月 19
4962
0
8月 19
3938