parameters: (self)
docstring: For fresh users with 0 karma that don't have a rank_id and next_rank_id yet
          this method returns the first karma rank (by karma ascending). This acts as a
          default value in related views.
  
          TDE FIXME in post-12.4: make next_rank_id a non-stored computed field correctly computed
docstring_summary: For fresh users with 0 karma that don't have a rank_id and next_rank_id yet
          this method returns the first karma rank (by karma ascending). This acts as a
          default value in related views.
docstring_tokens: For fresh users with 0 karma that don t have a rank_id and next_rank_id yet this method returns the first karma rank ( by karma ascending ) . This acts as a default value in related views .
function: def _get_next_rank(self):
          """ For fresh users with 0 karma that don't have a rank_id and next_rank_id yet
          this method returns the first karma rank (by karma ascending). This acts as a
          default value in related views.
  
          TDE FIXME in post-12.4: make next_rank_id a non-stored computed field correctly computed """
  
          if self.next_rank_id:
              return self.next_rank_id
          elif not self.rank_id:
              return self.env['gamification.karma.rank'].search([], order="karma_min ASC", limit=1)
          else:
              return self.env['gamification.karma.rank']
function_tokens: def _get_next_rank ( self ) : if self . next_rank_id : return self . next_rank_id elif not self . rank_id : return self . env [ 'gamification.karma.rank' ] . search ( [ ] , order = "karma_min ASC" , limit = 1 ) else : return self . env [ 'gamification.karma.rank' ]