Skip to Content
Menú
This question has been flagged
2 Respostes
8538 Vistes

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

Avatar
Descartar
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
Descartar

how we can send them from python ?

Autor Best Answer

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

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de juny 23
1855
1
de maig 23
1805
1
d’oct. 22
3915
0
de maig 20
3054
1
de març 15
6068