跳至内容
菜单
此问题已终结
1 回复
4053 查看

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
1942
1
5月 23
1888
0
5月 20
3138
2
1月 20
8688
1
3月 15
6217