Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
3210 Tampilan

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


Avatar
Buang
Jawaban Terbai

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

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Des 21
3995
1
Agu 22
4428
0
Jun 22
2113
2
Jan 22
2856
1
Sep 21
3082