'Broadcast the welcome message to all users in the employee company.'

@api.multi
def _broadcast_welcome(self):

    self.ensure_one()
    IrModelData = self.env['ir.model.data']
    channel_all_employees = IrModelData.xmlid_to_object('mail.channel_all_employees')
    template_new_employee = IrModelData.xmlid_to_object('hr_recruitment.email_template_data_applicant_employee')
    if template_new_employee:
        MailTemplate = self.env['mail.template']
        body_html = MailTemplate.render_template(template_new_employee.body_html, 'hr.employee', self.id)
        subject = MailTemplate.render_template(template_new_employee.subject, 'hr.employee', self.id)
        channel_all_employees.message_post(body=body_html, subject=subject, subtype='mail.mt_comment')
    return True
