Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
3289 Vistas

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?

Mejor respuesta

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
Publicaciones relacionadas Respuestas Vistas Actividad
1
sept 23
3925
1
dic 23
992
2
sept 23
7968
1
ago 24
2521
1
dic 23
1735