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

While validating some fields in js i need to show sticky Waring messages ,How it can be done ?  

아바타
취소
베스트 답변

Hi,

1.Notification

do_notify(title, message, sticky, className):

eg:

this.do_notify("Success", "Your Message has been send successfully...");

2.Warning

do_warn(title, message, sticky, className):

eg:

this.do_warn("Error","Please Check the values before save");

title : Title of notification

message : Message to display

sticky : boolean value (optional) if true user must dismiss notification

className : CSS class (optional)

Similar forum post how call odoo warning from javascript? 

Regards

아바타
취소

how we can send them from python ?

작성자 베스트 답변

Thanks a lot for the quick response , and it works..

아바타
취소
관련 게시물 답글 화면 활동
1
6월 23
1954
1
5월 23
1929
1
10월 22
4075
0
5월 20
3151
1
3월 15
6234