(self)
return sudoed.write({'invited_user_ids': (3, user.id)})
The user discard the suggested challenge
The user discard the suggested challenge
The user discard the suggested challenge
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)})
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 ) } )