Skip to Content
Menu
This question has been flagged
1 Odpoveď
4030 Zobrazenia

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
Zrušiť
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
Zrušiť
Autor

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

Related Posts Replies Zobrazenia Aktivita
1
jún 23
1937
1
máj 23
1880
0
máj 20
3119
2
jan 20
8682
1
mar 15
6212