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

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
5017
1
груд. 23
1622
2
вер. 23
9210
1
серп. 24
3192
1
груд. 23
2583