Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
4235 Представления

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

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
нояб. 22
1848
1
нояб. 22
2040
0
дек. 20
58
1
мар. 25
948
0
янв. 22
2453