コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2420 ビュー

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


アバター
破棄
著作者

Any Ideas on this ??

最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
1
8月 23
2966
3
7月 21
5269
1
8月 19
3021
2
5月 19
5564
2
4月 19
3445