'get set of first letter of forum tags'

def get_tags_first_char(self):

    tags = self.env['forum.tag'].search([('forum_id', '=', self.id), ('posts_count', '>', 0)])
    return sorted(set([tag.name[0].upper() for tag in tags if len(tag.name)]))
