Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
3302 Tampilan

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
Buang

hi, Saleh. Did you find any solution?

Jawaban Terbai

You can try the following: 

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

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

​return _super(...arguments)
}

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Sep 23
3941
1
Des 23
1006
2
Sep 23
7989
1
Agu 24
2530
1
Des 23
1743