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

Hello, I have Odoo8.

I have a model A which has a many2many field relation to model B. Is there any way to access to the many2many field from model B? Thanks!

아바타
취소
베스트 답변

You create a similar many2many field in model B, which is based on the same relation object.

fields.many2many('other.object.name', 'relation object', 'actual.object.id', 'other.object.id', 'Field Name')

아바타
취소
관련 게시물 답글 화면 활동
2
9월 17
10454
1
5월 15
22274
1
2월 24
2308
0
7월 24
3492
2
12월 22
15214