Skip to Content
Menú
This question has been flagged
1 Respondre
5389 Vistes

I have created a wizard in odoo 9 . It hasn't close button in default. I have created a close button.

<button string="Discard" name="cancel_wizard" type="object"/>
@api.one
def cancel_wizard(self):
    pass

It do not close before setting all mandatory fields.

Can you explain any solution, Thanks in advance !

Avatar
Descartar
Best Answer

dear shameem@aχoncoms,

<button string="Discard" class="oe_link" special="cancel"/>

you can make something like this in your code and then not need to do any thing in .py file


I hOpe I helped you ...

Avatar
Descartar
Autor

Wonderful, It is working :)

what if it was in a form view?

I put a button to fill some fields

but i couldnt click it before adding mandatory fields

Related Posts Respostes Vistes Activitat
4
de nov. 24
12248
1
d’abr. 24
3829
1
d’ag. 20
5023
2
de set. 19
18248
0
de juny 16
3161