Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
8648 Представления

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
1922
1
мая 23
1865
1
окт. 22
4018
0
мая 20
3111
1
мар. 15
6196