Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
3834 Vizualizări

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.


Imagine profil
Abandonează

hi, Saleh. Did you find any solution?

Cel mai bun răspuns

You can try the following: 

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

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

​return _super(...arguments)
}

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
sept. 23
4957
1
dec. 23
1572
2
sept. 23
9143
1
aug. 24
3158
1
dec. 23
2528