'Reset the completion after setting a goal as reached or failed.
This is only the current state, if the date and/or target criteria
match the conditions for a change of state, this will be applied at the
next goal update.'

@api.multi
def action_cancel(self):

    return self.write({'state': 'inprogress'})
