Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
3790 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
4928
1
dez. 23
1552
2
set. 23
9046
1
ago. 24
3110
1
dez. 23
2480