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

You can use One2many to get a reference to all the records that reference the record with a Many2one field. Is there a similar inverse field for the Reference field type?

아바타
취소

can you elaborate a bit more?

작성자

I have a model with a fields.Reference that can refer to rows from 6 models. I want an inverse reference from some of those 6 models back to the original one.

작성자 베스트 답변

 

아바타
취소
베스트 답변

\

dear Tamás Dombos
yes you can do it.
 as example you have:
- model1 and model 2.
field_model2= many2one with model1
field_model1= one2many with model2 by field_model2
I hope I helped you.
아바타
취소
작성자

The question concerned the fields.Reference that allows you to refer to rows of several models, not Many2one that only allows you to refer to rows of one model.

관련 게시물 답글 화면 활동
0
9월 19
98
1
7월 17
4001
1
5월 16
4829
1
3월 16
4849
2
3월 16
7130