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

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
5016
1
12月 23
1620
2
9月 23
9207
1
8月 24
3190
1
12月 23
2582