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 !!
Esta pergunta foi sinalizada
1
Responder
4365
Visualizações
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
Está gostando da discussão? Não fique apenas lendo, participe!
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscrever-se| Publicações relacionadas | Respostas | Visualizações | Atividade | |
|---|---|---|---|---|
|
|
1
ago. 23
|
4834 | ||
|
Override JS mail
Resolvido
|
|
3
jul. 21
|
7150 | |
|
|
1
ago. 19
|
5134 | ||
|
|
2
mai. 19
|
7845 | ||
|
|
2
abr. 19
|
5495 |
Any Ideas on this ??