diff --git a/addons/mail/models/mail_thread.py b/addons/mail/models/mail_thread.py index e9197a7292dfac72d95bed2ea2bba7d74d1932be..6d3b1f0fcc32d1f0454a8cd765a976fd795ef0c0 100644 --- a/addons/mail/models/mail_thread.py +++ b/addons/mail/models/mail_thread.py @@ -1894,8 +1894,14 @@ class MailThread(models.AbstractModel): self.sudo().write({'message_last_post': fields.Datetime.now()}) if new_message.author_id and model and self.ids and message_type != 'notification' and not self._context.get('mail_create_nosubscribe'): self.message_subscribe([new_message.author_id.id], force=False) + + self._message_post_after_hook(new_message) + return new_message + def _message_post_after_hook(self, message): + pass + @api.multi def message_post_with_view(self, views_or_xmlid, **kwargs): """ Helper method to send a mail / post a message using a view_id to