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

In openerp 7 Is it possible to functional field output shows before save the records and Editable functional field?

아바타
취소
베스트 답변

I think yes.

Example on_change method:. link text

Just add any field for output in your result.

def custom_function(self, cr, uid, ids,  field_name_from_xml,  context=None):
    # work with input data
    #... your result in custom_addr
    custom_addr = 'Barcelona'
    return {
        'value': {
            'address': custom_addr # adress is must in your xml declaration in this case
        }
}
아바타
취소

but note that whenever you click save it will load data from function only

Yes, in this case not need to save the data, this works when you change the filed value... as I know :-)

관련 게시물 답글 화면 활동
3
6월 23
2582
1
9월 22
2907
1
8월 22
2850
0
4월 22
3798
1
1월 22
4722