Skip to Content
मेन्यू
This question has been flagged
1 Reply
4191 Views

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
Discard
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
Discard
Author

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

Related Posts Replies Views Activity
1
जून 23
2095
1
मई 23
2045
0
मई 20
3207
2
जन॰ 20
8822
1
मार्च 15
6376