So we have written an odoo15 module in the legacy javascript format , but now are going to upgrade the code into the odoo16 version.
To be exact, we have used extended the DatePicker field and it works completely fine in v15.
However, the new v16 uses owl framework and the code is written in a completely different way, but there I can find ' /legacy' folder still on the odoo16 module, but when the code javascript does not work in v16.
Is there any way I can use the legacy version of the code in odoo16 as well?
......................................................................................................................................
......................................................................................................................................
Also , in 15 we used to use .extend method in order to add some feature to a js model, its counterpart in odoo is to use prototyping patch method?