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

hi guys, I want to show a field in the res.partner form view but the field is in another object. How can i do to show it in that view? Thanks a lot for your answers

아바타
취소
베스트 답변

Hi,

You must define a field type function in res.partner. and in this function get information in another object.

def _get_other(self,cr,uid,ids,field,arg,context=None):       
       res={}
       //your treatment
       return res

_columns = {
          'other': fields.function(_get_other, method=True, type='float',string='Info other'),
          }

Thank You.

아바타
취소
관련 게시물 답글 화면 활동
4
1월 24
24181
Attrs attribute 해결 완료
2
1월 24
3040
0
8월 23
2909
5
9월 21
18385
3
1월 21
18986