Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
3468 Visualizações

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
Cancelar

hi, Saleh. Did you find any solution?

Melhor resposta

You can try the following: 

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

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

​return _super(...arguments)
}

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
set. 23
4273
1
dez. 23
1186
2
set. 23
8283
1
ago. 24
2784
1
dez. 23
2037