Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
6028 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Beste antwoord

Change the button type to object.

Avatar
Annuleer

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?

Gerelateerde posts Antwoorden Weergaven Activiteit
2
jul. 19
9146
0
mei 20
2992
1
sep. 18
12593
1
apr. 17
3950
5
jul. 25
7876