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

i am new to odoo i, am trying to get data from my different model to one single form in tree view .how i can do it please help???

thanks


아바타
취소
베스트 답변

Your tree view can only show fields in a model, but for you to show the data from another model in your tree view, you can create a field and relate the new field to the data you want to get:

many_two_one_field = fields.Many2one('res.partner')
new_field = fields.Char(related='many_two_one_field.data_field')

The above shows there is a connecting field in your current model with the field you want to get that from; many_two_one_field

Regards

아바타
취소
관련 게시물 답글 화면 활동
1
11월 22
4042
2
8월 22
8460
1
1월 25
10349
1
9월 21
7460
1
3월 21
6372