Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
1958 Näkymät

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 !!


Avatar
Hylkää
Tekijä

Any Ideas on this ??

Paras vastaus

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

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
elok. 23
2470
3
heinäk. 21
4815
1
elok. 19
2679
2
toukok. 19
4848
2
huhtik. 19
3004