Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
3785 Переглядів

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.


Аватар
Відмінити

hi, Saleh. Did you find any solution?

Найкраща відповідь

You can try the following: 

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

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

​return _super(...arguments)
}

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
вер. 23
4924
1
груд. 23
1549
2
вер. 23
9046
1
серп. 24
3109
1
груд. 23
2476