İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
8557 Görünümler

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

Avatar
Vazgeç
En İyi Yanıt

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
Vazgeç

how we can send them from python ?

Üretici En İyi Yanıt

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

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Haz 23
1861
1
May 23
1815
1
Eki 22
3924
0
May 20
3060
1
Mar 15
6089