Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
3462 Vues

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
Ignorer

hi, Saleh. Did you find any solution?

Meilleure réponse

You can try the following: 

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

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

​return _super(...arguments)
}

Avatar
Ignorer
Publications associées Réponses Vues Activité
1
sept. 23
4246
1
déc. 23
1181
2
sept. 23
8267
1
août 24
2780
1
déc. 23
2023