Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
8546 Weergaven

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

Avatar
Annuleer
Beste antwoord

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
Annuleer

how we can send them from python ?

Auteur Beste antwoord

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

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
jun. 23
1858
1
mei 23
1808
1
okt. 22
3921
0
mei 20
3056
1
mrt. 15
6080