Skip to Content
Menu
This question has been flagged
1 Reply
4450 Views

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
Discard
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
Discard
Author

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 Replies Views Activity
4
Nov 24
9348
1
Apr 24
2762
1
Aug 20
4260
2
Sep 19
17197
0
Jun 16
2327