From 74ec8a95a0f7b1aadd847a728b4d9bc24daca495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Tue, 30 Jan 2018 17:17:35 +0100 Subject: [PATCH] [IMP] mail: make tracking without subtype a notification log (note) This message is not linked to any real subtype and will never be notified to someone. It creates a notification with subtype note. It is however different from user-created notes and should not be propagated. Tracking triggering subtypes are managed differently as they have a business related meaning. It makes sense to notify them to followers. --- addons/mail/models/mail_thread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/models/mail_thread.py b/addons/mail/models/mail_thread.py index 8960fcb2935..96d99fb85b5 100644 --- a/addons/mail/models/mail_thread.py +++ b/addons/mail/models/mail_thread.py @@ -566,7 +566,7 @@ class MailThread(models.AbstractModel): continue record.message_post(subtype=subtype_xmlid, tracking_value_ids=tracking_value_ids) elif tracking_value_ids: - record.message_post(tracking_value_ids=tracking_value_ids) + record._message_log(tracking_value_ids=tracking_value_ids) self._message_track_post_template(tracking)