콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
4243 화면

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
2135
1
5월 23
2080
0
5월 20
3245
2
1월 20
8886
1
3월 15
6424