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

So every partner have this fields that I added to list fields in my method. those fields are many2one fields with comodel 'product.category' so they are in the same table. how can I retrieve id's of all this field for a current partner?


아바타
취소
베스트 답변

Hi,

would you like to get current partner field value by key? Then, just use it in brackets.

for field in fields:    
    print (self[field])

If you want to find ir.model.fields record, just use standard Odoo search by model and field name

아바타
취소
관련 게시물 답글 화면 활동
1
6월 19
2585
1
4월 17
4915
1
7월 25
562
Search a message 해결 완료
1
2월 25
1262
0
9월 23
2225