Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
3308 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
3978
1
dec. 23
1012
2
sep. 23
8009
1
aug. 24
2544
1
dec. 23
1749