コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
8549 ビュー

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..

アバター
破棄
関連投稿 返信 ビュー 活動
1
6月 23
1858
1
5月 23
1808
1
10月 22
3921
0
5月 20
3056
1
3月 15
6080