Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4207 Visualizzazioni

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
Abbandona

hi, Saleh. Did you find any solution?

Risposta migliore

You can try the following: 

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

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

​return _super(...arguments)
}

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
set 23
5523
1
dic 23
1991
2
set 23
9969
2
set 25
3845
1
ago 24
3561