'Notify newly subscribed followers of the last posted message.
:param partner_ids : the list of partner to add as needaction partner of the last message
(This excludes the current partner)'

@api.multi
def _message_auto_subscribe_notify(self, partner_ids):

    if (not partner_ids):
        return
    if self.env.context.get('mail_auto_subscribe_no_notify'):
        return
    if ('active_domain' in self.env.context):
        ctx = dict(self.env.context)
        ctx.pop('active_domain')
        self = self.with_context(ctx)
    for record in self:
        record.message_post_with_view('mail.message_user_assigned', composition_mode='mass_mail', partner_ids=[(4, pid) for pid in partner_ids], auto_delete=True, auto_delete_message=True, parent_id=False, subtype_id=self.env.ref('mail.mt_note').id)
