Skip to Content
मेन्यू
This question has been flagged
1 Reply
4248 Views

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

Avatar
Discard
Best Answer

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
Discard
Related Posts Replies Views Activity
1
नव॰ 22
1875
1
नव॰ 22
2050
0
दिस॰ 20
58
1
मार्च 25
954
0
जन॰ 22
2469