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

I have a module 'x', the module is having fields in the db, 'id', 'member_id'.

I want to get the related 'member_id' data to my module 'y', as

temp = fields.many2one('x', "Member ID", required=True)

but what I get with this code is the value of 'id', not 'member_id', how to get the value of 'member_id'?

아바타
취소

By judging your question I think you mean you've made a model 'x' in place of a module? I'd advise you to use descriptive model names though, since this is really a bad practice..

작성자

x and y are just names

관련 게시물 답글 화면 활동
1
1월 22
3479
0
3월 15
4624
1
11월 24
2189
1
8월 23
2957
1
6월 18
3914