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

How to define on_change method in odoo v8?

Thank you in advance.

아바타
취소
베스트 답변

@Prince,

Here you go!

 @api.onchange(<your field name>)
    def _onchange_student(self):
       body of your code

#Note : in odoo v8 you no need to call that method from xml file it will directly call when you do changes in field which you have passed as argument in @api.onchange method. it will call.

Hope this will helps you.

Regards,

Anil.

 

아바타
취소
관련 게시물 답글 화면 활동
4
12월 19
14676
1
3월 15
5340
0
4월 24
1886
4
11월 23
6016
1
10월 23
2046