跳至內容
選單
此問題已被標幟
2 回覆
6015 瀏覽次數

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"/>

頭像
捨棄
最佳答案

Hi,


Change the button type to object,

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

Thanks

頭像
捨棄
最佳答案

Change the button type to object.

頭像
捨棄

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?

相關帖文 回覆 瀏覽次數 活動
2
7月 19
9144
0
5月 20
2987
1
9月 18
12585
1
4月 17
3946
5
7月 25
7866