'Return the channel info of the channel the current partner can join
:param name : the name of the researched channels
:param domain : the base domain of the research
:returns dict : channel dict'

@api.model
def channel_search_to_join(self, name=None, domain=None):

    if (not domain):
        domain = []
    domain = expression.AND([[('channel_type', '=', 'channel')], [('channel_partner_ids', 'not    in', [self.env.user.partner_id.id])], [('public', '!=', 'private')], domain])
    if name:
        domain = expression.AND([domain, [('name', 'ilike', (('%' + name) + '%'))]])
    return self.search(domain).read(['name', 'public', 'uuid', 'channel_type'])
