Skip to Content
Menú
This question has been flagged
1 Respondre
3088 Vistes

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
Descartar
Best Answer

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

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de des. 21
3856
1
d’ag. 22
4328
0
de juny 22
2004
2
de gen. 22
2793
1
de set. 21
2913