OptionalProductsModal have this function willstart , i need to add some things to it
when i use include and call the function it also calls the base function willstart , but i want it to only call my function written in custom file , But also want super statement because the parent super of original method needs to be called (for Dialog and mixins )
Any workaround to only bypass one level of super ???? or to override the whole thing !!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Boekhouding
- Voorraad
- PoS
- Project
- MRP
Deze vraag is gerapporteerd
1
Beantwoorden
2285
Weergaven
Hi,
Try like below code
/** @odoo-module */
import { OptionalProductsModal } from "@sale_product_configurator/js/product_configurator_modal";
OptionalProductsModal.prototype.willStart = function (){
// Your code
return this._super.apply(this, arguments)
}
Regards
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
AanmeldenGerelateerde posts | Antwoorden | Weergaven | Activiteit | |
---|---|---|---|---|
|
1
aug. 23
|
2829 | ||
Override JS mail
Opgelost
|
|
3
jul. 21
|
5144 | |
|
1
aug. 19
|
2923 | ||
|
2
mei 19
|
5227 | ||
|
2
apr. 19
|
3287 |
Any Ideas on this ??