تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
7922 أدوات العرض

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
يونيو 23
1323
1
مايو 23
1201
1
أكتوبر 22
3363
0
مايو 20
2696
1
مارس 15
5731