콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
2344 화면

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
2884
Override JS mail 해결 완료
3
7월 21
5191
1
8월 19
2966
2
5월 19
5324
2
4월 19
3330