Skip to Content
Menu
This question has been flagged
1 Atsakyti
3778 Rodiniai

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.


Portretas
Atmesti

hi, Saleh. Did you find any solution?

Best Answer

You can try the following: 

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

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

​return _super(...arguments)
}

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
rugs. 23
4919
1
gruod. 23
1538
2
rugs. 23
9028
1
rugp. 24
3108
1
gruod. 23
2468