[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.
This commit is contained in:
Thibault Delavallée
2018-01-30 17:22:12 +01:00
parent 99be64dc17
commit 74ec8a95a0
+1 -1
View File
@@ -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)