Skip to Content
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
3272 Представления

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
3879
1
дек. 23
973
2
сент. 23
7917
1
авг. 24
2507
1
дек. 23
1712