Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
8635 มุมมอง

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง

how we can send them from python ?

ผู้เขียน คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มิ.ย. 23
1907
1
พ.ค. 23
1859
1
ต.ค. 22
4006
0
พ.ค. 20
3106
1
มี.ค. 15
6185