Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
4044 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Penulis

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

Post Terkait Replies Tampilan Aktivitas
1
Jun 23
1940
1
Mei 23
1885
0
Mei 20
3135
2
Jan 20
8685
1
Mar 15
6216