Skip to Content
Menú
This question has been flagged
1 Respondre
3290 Vistes

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
Descartar

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
Descartar
Related Posts Respostes Vistes Activitat
1
de set. 23
3928
1
de des. 23
996
2
de set. 23
7973
1
d’ag. 24
2525
1
de des. 23
1737