Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
3904 Vistas

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
Descartar
Mejor respuesta

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
Descartar
Autor

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

Publicaciones relacionadas Respuestas Vistas Actividad
1
jun 23
1847
1
may 23
1795
0
may 20
3051
2
ene 20
8528
1
mar 15
6054