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

this.do_notify("Success", "Your Message has been send successfully...");

I can see the following error:

Uncaught Javascript Error > this.do_notify is not a function

Avatar
Cancelar
Melhor resposta

Hi,

Instead of using this.do_notify in odoo 15, we should use this.displayNotification.

So try changing the code to

this.displayNotification({
   type: 'warning',
   title: _t('Success'),
   message: "Your Message has been send successfully...",
   sticky: true
});

Regards

Avatar
Cancelar
Autor

Thanks
but when used displayNotification function
i getting this error
TypeError: cannot read properties of undefined ( reading 'displayNotification)

Publicações relacionadas Respostas Visualizações Atividade
1
jun. 23
1941
1
mai. 23
1887
0
mai. 20
3138
2
jan. 20
8686
1
mar. 15
6216