تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
4029 أدوات العرض

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

الصورة الرمزية
إهمال
أفضل إجابة

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

الصورة الرمزية
إهمال
الكاتب

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

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يونيو 23
1936
1
مايو 23
1880
0
مايو 20
3118
2
يناير 20
8681
1
مارس 15
6212