Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
8015 Vistas

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

Avatar
Descartar
Mejor respuesta

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 Mejor respuesta

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

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
jun 23
1367
1
may 23
1275
1
oct 22
3436
0
may 20
2724
1
mar 15
5785