콘텐츠로 건너뛰기
메뉴
신고된 질문입니다
1 회신
3303 화면

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
4150
1
8월 22
4645
0
6월 22
2297
2
1월 22
3003
1
9월 21
3296