Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
8669 Visualizzazioni

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

Avatar
Abbandona
Risposta migliore

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
Abbandona

how we can send them from python ?

Autore Risposta migliore

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
giu 23
1932
1
mag 23
1877
1
ott 22
4021
0
mag 20
3113
1
mar 15
6201