Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
8651 Visninger

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

Avatar
Kassér
Bedste svar

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
Kassér

how we can send them from python ?

Forfatter Bedste svar

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

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
jun. 23
1922
1
maj 23
1865
1
okt. 22
4018
0
maj 20
3111
1
mar. 15
6196