parameters: (self)
return_statement: return sudoed.write({'invited_user_ids': (3, user.id)})
docstring: The user discard the suggested challenge
docstring_summary: The user discard the suggested challenge
docstring_tokens: The user discard the suggested challenge
function: def discard_challenge(self):
          """The user discard the suggested challenge"""
          user = self.env.user
          sudoed = self.sudo()
          sudoed.message_post(body=_("%s has refused the challenge", user.name))
          return sudoed.write({'invited_user_ids': (3, user.id)})
function_tokens: def discard_challenge ( self ) : user = self . env . user sudoed = self . sudo ( ) sudoed . message_post ( body = _ ( "%s has refused the challenge" , user . name ) ) return sudoed . write ( { 'invited_user_ids' : ( 3 , user . id ) } )