'Check a challenge
Create goals that haven\'t been created yet (eg: if added users)
Recompute the current value for each goal related'

@api.multi
def action_check(self):

    self.env['gamification.goal'].search([('challenge_id', 'in', self.ids), ('state', '=', 'inprogress')]).unlink()
    return self._update_all()
