跳至內容
選單
此問題已被標幟
1 回覆
3362 瀏覽次數

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
4036
1
12月 23
1060
2
9月 23
8053
1
8月 24
2568
1
12月 23
1786