콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
10522 화면

My plan is to give our customers a user to our Odoo and only show it the customer profile page, it is linked to(res.users has Related Partner(partner_id)). I thought to use a domain and uid(that is the user that is logged in right now? So I have tried things like 

[['id','=',uid.partner_id]] 
[['name','=',uid.name]]
[['name','ilike',uid]]

The last one only shows the companies that have user's id in their name (for Admin it's 1) for the rest it's (object has no attribute 'partner_id'). Any ideas?

아바타
취소
작성자 베스트 답변

[('user_ids.id', '=', uid)]
This is the domain I was looking for. Thanks to Kalpana though

아바타
취소
베스트 답변

Hello Anti,

Apply a record rule [('user_ids.id', '=', user.id)] globally for Partner.Hope it works for you.

아바타
취소
관련 게시물 답글 화면 활동
2
5월 24
4120
1
1월 22
5903
0
7월 19
3202
0
7월 15
4727
naked domain set up 해결 완료
3
7월 25
4772