コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
6019 ビュー

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
9145
0
5月 20
2987
1
9月 18
12585
1
4月 17
3946
5
7月 25
7866