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

Hi I have created a custom module in openerp v7. I am using win7 and eclipse IDE(Python) . I have added a button to my module to give it more features. But I dont know how to add a function to that button . I dont have any idea how to declare functions in openerp and call them ?

아바타
취소
베스트 답변
'my_field': fields.function(_get_myfield, method=True, string='Reference', type='char'),
def _get_myfield(self, cr, uid, ids, field_name, arg, context=None):
         #your logic declared here
    return result
아바타
취소
관련 게시물 답글 화면 활동
1
12월 23
32329
0
3월 15
5071
0
3월 15
4253
1
3월 15
9990
0
3월 15
3751