'Return \'limit\'-first partners\' id, name and email such that the name or email matches a
\'search\' string. Prioritize users, and then extend the research to all partners.'

@api.model
def get_mention_suggestions(self, search, limit=8):

    search_dom = expression.OR([[('name', 'ilike', search)], [('email', 'ilike', search)]])
    fields = ['id', 'name', 'email']
    domain = expression.AND([[('user_ids.id', '!=', False)], search_dom])
    users = self.search_read(domain, fields, limit=limit)
    partners = []
    if (len(users) < limit):
        partners = self.search_read(search_dom, fields, limit=limit)
        partners = [p for p in partners if (not len([u for u in users if (u['id'] == p['id'])]))]
    return [users, partners]
