跳至内容
菜单
此问题已终结
1 回复
3673 查看

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
4826
1
12月 23
1468
2
9月 23
8869
1
8月 24
3061
1
12月 23
2393