Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
8667 Ansichten

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

Avatar
Verwerfen
Beste Antwort

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
Verwerfen

how we can send them from python ?

Autor Beste Antwort

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

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Juni 23
1932
1
Mai 23
1876
1
Okt. 22
4021
0
Mai 20
3113
1
März 15
6201