Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
3891 Prikazi

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
Opusti

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
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
sep. 23
5047
1
dec. 23
1641
2
sep. 23
9225
1
avg. 24
3200
1
dec. 23
2592