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

i am migrating the module from openerp 6.1 to 7.0 and i have used default get method, that is not working in openerp 7.0

아바타
취소
베스트 답변
def default_get(self, cr, uid, fields, context=None):
    data = super(curent_object, self).default_get(cr, uid, fields, context=context)
    data['field']=value
    return data

This is a sample example of default_get:

아바타
취소

Thanks@ Lakhsam Give you +1 vote,this code very helpfull me

관련 게시물 답글 화면 활동
2
6월 24
1744
4
11월 21
4794
2
6월 20
5572
1
5월 20
5363
1
5월 20
3277