Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
6025 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

Change the button type to object.

Avatar
Zrušit

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 Odpovědi Zobrazení Aktivita
2
čvc 19
9146
0
kvě 20
2989
1
zář 18
12588
1
dub 17
3949
5
čvc 25
7875