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

Hello,


we have a multi-company setup. I am creating an app (using Studio) and I would like to set up a default filter so that users from each company would see just records for that company.


Something like this:

[["x_studio_many2one_field_crAZL.id","=","user.company_id"]]

x_studio_many2one_field_crAZL is the Companies>ID


But this does not work. Is there a way to do this? Or is there a better way?


Thanks,

Jiri


アバター
破棄
最善の回答

Create a new Record rule from setting, domain filter should be as:
['|',('company_id','=',False),('company_id', 'in', company_ids)]

アバター
破棄
関連投稿 返信 ビュー 活動
1
12月 21
4022
1
8月 22
4464
0
6月 22
2131
2
1月 22
2860
1
9月 21
3095