parameters: (self, operator, operand)
return_statement: return [('id', 'in', visitor_ids)]
docstring: Search visitors with terms on wishlisted tracks. E.g. [('event_track_wishlisted_ids',
          'in', [1, 2])] should return visitors having wishlisted tracks 1, 2 as
          well as their children for notification purpose.
docstring_summary: Search visitors with terms on wishlisted tracks. E.g. [('event_track_wishlisted_ids',
          'in', [1, 2])] should return visitors having wishlisted tracks 1, 2 as
          well as their children for notification purpose.
docstring_tokens: Search visitors with terms on wishlisted tracks . E . g . [ ( event_track_wishlisted_ids in [ 1 2 ] ) ] should return visitors having wishlisted tracks 1 2 as well as their children for notification purpose .
function: def _search_event_track_wishlisted_ids(self, operator, operand):
          """ Search visitors with terms on wishlisted tracks. E.g. [('event_track_wishlisted_ids',
          'in', [1, 2])] should return visitors having wishlisted tracks 1, 2 as
          well as their children for notification purpose. """
          if operator == "not in":
              raise NotImplementedError("Unsupported 'Not In' operation on track wishlist visitors")
  
          track_visitors = self.env['event.track.visitor'].sudo().search([
              ('track_id', operator, operand),
              ('is_wishlisted', '=', True)
          ])
          if track_visitors:
              visitors = track_visitors.visitor_id
              # search children, even archived one, to contact them
              children = self.env['website.visitor'].with_context(
                  active_test=False
              ).sudo().search([('parent_id', 'in', visitors.ids)])
              visitor_ids = (visitors + children).ids
          else:
              visitor_ids = []
  
          return [('id', 'in', visitor_ids)]
function_tokens: def _search_event_track_wishlisted_ids ( self , operator , operand ) : if operator == "not in" : raise NotImplementedError ( "Unsupported 'Not In' operation on track wishlist visitors" ) track_visitors = self . env [ 'event.track.visitor' ] . sudo ( ) . search ( [ ( 'track_id' , operator , operand ) , ( 'is_wishlisted' , '=' , True ) ] ) if track_visitors : visitors = track_visitors . visitor_id # search children, even archived one, to contact them children = self . env [ 'website.visitor' ] . with_context ( active_test = False ) . sudo ( ) . search ( [ ( 'parent_id' , 'in' , visitors . ids ) ] ) visitor_ids = ( visitors + children ) . ids else : visitor_ids = [ ] return [ ( 'id' , 'in' , visitor_ids ) ]