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 !!
Cette question a été signalée
1
Répondre
4341
Vues
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
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
|
1
août 23
|
4830 | ||
|
Override JS mail
Résolu
|
|
3
juil. 21
|
7142 | |
|
|
1
août 19
|
5125 | ||
|
|
2
mai 19
|
7841 | ||
|
|
2
avr. 19
|
5481 |
Any Ideas on this ??