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

I'm trying to extend the leave Calendar and add a function at the hr_leave.py. i already understood what the self object presents. But i dont know wich Function Odoo Calls when i create a new Record for Example. Can someone tell me how Odoo creates an Object?  

아바타
취소
베스트 답변

Hi,

  I think you are new to odoo .please go through this link https://www.odoo.com/documentation/12.0/ 

  when a new record creates a default method called create is called.we can super it if we want to make some changes on  the record while creating.

 if you are trying to extend the leave calendar model you can do it by using _inherit = 'model you want to change' and write the method you want to add. 

아바타
취소
관련 게시물 답글 화면 활동
Cronjob | Odoo12 해결 완료
1
7월 19
4221
0
2월 22
1878
6
8월 19
10082
1
2월 24
2719
0
2월 24
1418