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 !!
Dette spørgsmål er blevet anmeldt
1
Svar
4401
Visninger
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
Kan du lide at diskutere? Læs ikke bare med, deltag aktivt i debatten!
Opret en konto i dag for at få glæde af eksklusive funktioner, og bliv en del af vores skønne fællesskab!
Tilmeld dig| Relaterede indlæg | Besvarelser | Visninger | Aktivitet | |
|---|---|---|---|---|
|
|
1
aug. 23
|
4874 | ||
|
Override JS mail
Løst
|
|
3
jul. 21
|
7174 | |
|
|
1
aug. 19
|
5163 | ||
|
|
2
maj 19
|
7863 | ||
|
|
2
apr. 19
|
5499 |
Any Ideas on this ??