Skip to Content
Menu
This question has been flagged
1 Odpoveď
3793 Zobrazenia

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
Zrušiť

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
Zrušiť
Related Posts Replies Zobrazenia Aktivita
1
sep 23
4930
1
dec 23
1553
2
sep 23
9052
1
aug 24
3111
1
dec 23
2485