Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
4160 Weergaven

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

Avatar
Annuleer
Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
nov. 22
1789
1
nov. 22
1958
0
dec. 20
58
1
mrt. 25
911
0
jan. 22
2383