Skip to Content
Menu
This question has been flagged
2 Replies
8628 Zobrazenia

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

Avatar
Zrušiť
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
Zrušiť

how we can send them from python ?

Autor Best Answer

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

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
1
jún 23
1905
1
máj 23
1857
1
okt 22
4003
0
máj 20
3105
1
mar 15
6182