İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
3877 Görünümler

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
Vazgeç

hi, Saleh. Did you find any solution?

En İyi Yanıt

You can try the following: 

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

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

​return _super(...arguments)
}

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Eyl 23
5026
1
Ara 23
1637
2
Eyl 23
9216
1
Ağu 24
3194
1
Ara 23
2585