Skip to Content
मेन्यू
This question has been flagged
1 Reply
3885 Views

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.


Avatar
Discard

hi, Saleh. Did you find any solution?

Best Answer

You can try the following: 

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

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

​return _super(...arguments)
}

Avatar
Discard
Related Posts Replies Views Activity
1
सित॰ 23
5039
1
दिस॰ 23
1641
2
सित॰ 23
9224
1
अग॰ 24
3200
1
दिस॰ 23
2592