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

What is the main difference of both of these methods,are they both the same thing?

아바타
취소
베스트 답변

Hi,

When extending in Js, instances from the parent class remain untouched, but instances from the new child class will have the extended features.


When you include, you are adding the new features to the prototype of the parent class.


Here is a link to the blog which explains in detail about their difference.

https://www.cybrosys.com/blog/what-is-the-difference-between-extend-and-include-in-odoo-16-javascript


Hope it helps

아바타
취소
관련 게시물 답글 화면 활동
1
11월 22
1902
1
11월 22
2089
0
12월 20
58
1
3월 25
986
0
1월 22
2519