Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
6040 Prikazi

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
Opusti
Best Answer

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
Opusti
Best Answer

Change the button type to object.

Avatar
Opusti

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?

Related Posts Odgovori Prikazi Aktivnost
2
jul. 19
9153
0
maj 20
3008
1
sep. 18
12614
1
apr. 17
3958
5
jul. 25
7883