Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
4137 Tampilan

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

Avatar
Buang
Jawaban Terbai

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

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Nov 22
1770
1
Nov 22
1954
0
Des 20
58
1
Mar 25
899
0
Jan 22
2367