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

With the new changes in odoo15. I am not able to override a function in Javascript.

I want to override  "async function _executeReportAction(action, options)" function. 

I hope you can help me.


아바타
취소

hi, Saleh. Did you find any solution?

베스트 답변

You can try the following: 

async function_executeReportAction(action, options) {
​const _super = this._super.bind(this)

​/** 
​ *here comes your code
​*/

​return _super(...arguments)
}

아바타
취소
관련 게시물 답글 화면 활동
1
9월 23
4929
1
12월 23
1553
2
9월 23
9048
1
8월 24
3111
1
12월 23
2482