Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
3821 Visninger

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
Kassér

hi, Saleh. Did you find any solution?

Bedste svar

You can try the following: 

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

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

​return _super(...arguments)
}

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
sep. 23
4948
1
dec. 23
1560
2
sep. 23
9113
1
aug. 24
3141
1
dec. 23
2517