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 !