Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
8657 Visualizações

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

Avatar
Cancelar
Melhor resposta

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

Avatar
Cancelar

how we can send them from python ?

Autor Melhor resposta

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

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
jun. 23
1925
1
mai. 23
1868
1
out. 22
4019
0
mai. 20
3113
1
mar. 15
6198