Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
8521 Tampilan

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

Avatar
Buang
Jawaban Terbai

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
Buang

how we can send them from python ?

Penulis Jawaban Terbai

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

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Jun 23
1838
1
Mei 23
1790
1
Okt 22
3899
0
Mei 20
3048
1
Mar 15
6052