Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3832 Zobrazení

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
Zrušit

hi, Saleh. Did you find any solution?

Nejlepší odpověď

You can try the following: 

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

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

​return _super(...arguments)
}

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
zář 23
4957
1
pro 23
1571
2
zář 23
9143
1
srp 24
3158
1
pro 23
2527