Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
6215 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Jawaban Terbai

Change the button type to object.

Avatar
Buang

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?

Post Terkait Replies Tampilan Aktivitas
2
Jul 19
9519
0
Mei 20
3225
1
Sep 18
12877
1
Apr 17
4297
5
Jul 25
8391