Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
8650 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhấ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

Ảnh đại diện
Huỷ bỏ

how we can send them from python ?

Tác giả Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 6 23
1922
1
thg 5 23
1865
1
thg 10 22
4018
0
thg 5 20
3111
1
thg 3 15
6196