コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4028 ビュー

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
6月 23
1936
1
5月 23
1880
0
5月 20
3118
2
1月 20
8681
1
3月 15
6212