Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4111 มุมมอง

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)

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มิ.ย. 23
1979
1
พ.ค. 23
1951
0
พ.ค. 20
3164
2
ม.ค. 20
8741
1
มี.ค. 15
6261