Skip to Content
Menú
This question has been flagged
1 Respondre
4061 Vistes

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
Best Answer

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)

Related Posts Respostes Vistes Activitat
1
de juny 23
1945
1
de maig 23
1899
0
de maig 20
3147
2
de gen. 20
8698
1
de març 15
6221