Skip to Content
Menu
This question has been flagged
2 Replies
7124 Views

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

Avatar
Discard
Best Answer

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

Avatar
Discard

how we can send them from python ?

Author Best Answer

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

Avatar
Discard
Related Posts Replies Views Activity
1
Jun 23
797
1
May 23
608
1
Oct 22
2687
0
May 20
2320
1
Mar 15
5149