Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
3789 Weergaven

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
Annuleer

hi, Saleh. Did you find any solution?

Beste antwoord

You can try the following: 

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

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

​return _super(...arguments)
}

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
sep. 23
4928
1
dec. 23
1552
2
sep. 23
9046
1
aug. 24
3110
1
dec. 23
2480