Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
6244 Vistas

Hi,

i created a button with function error wich watch an error message , but nothing appear

Odoo8 

this is my function 

 def error(self, cr, uid, ids, context=None):

return {'warning':{'title':'warning','message':'Your message'}} 

code xml 

< button colspan="2" name="error" type="action" string="Chercher client" class="oe_link oe_edit_only"/>

Avatar
Descartar
Mejor respuesta

Hi,


Change the button type to object,

< button colspan="2" name="error" type="object" string="Chercher client" class="oe_link oe_edit_only"/>

Thanks

Avatar
Descartar
Mejor respuesta

Change the button type to object.

Avatar
Descartar

doesn't make sense by adding same thing without any additional points which have already answered and marked as resolved

yeah I am surprised by the level of my negligence too.. should i delete this answer?

Publicaciones relacionadas Respuestas Vistas Actividad
2
jul 19
9531
0
may 20
3254
1
sept 18
12897
1
abr 17
4311
5
jul 25
8424