Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
6190 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,


Change the button type to object,

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

Thanks

Awatar
Odrzuć
Najlepsza odpowiedź

Change the button type to object.

Awatar
Odrzuć

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?

Powiązane posty Odpowiedzi Widoki Czynność
2
lip 19
9493
0
maj 20
3183
1
wrz 18
12844
1
kwi 17
4275
5
lip 25
8347