Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
8527 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć

how we can send them from python ?

Autor Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
cze 23
1847
1
maj 23
1795
1
paź 22
3904
0
maj 20
3051
1
mar 15
6054