Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
4128 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
5422
1
dec. 23
1903
2
sep. 23
9785
1
aug. 24
3481
1
dec. 23
2882