Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
4068 Prikazi

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
Opusti
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
Opusti
Avtor

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

Related Posts Odgovori Prikazi Aktivnost
1
jun. 23
1946
1
maj 23
1916
0
maj 20
3147
2
jan. 20
8703
1
mar. 15
6225