summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js
diff options
context:
space:
mode:
authorXavier-Do <Xavier-Do@users.noreply.github.com>2018-01-19 11:52:10 +0100
committerXavierDo <xdo@odoo.com>2018-01-30 14:49:03 +0100
commitc99de4551583e801ecc6669ac456c4f7e2eef1da (patch)
treebcf7a41437147ce9675f9219b2cb2f2ad6d3742b /addons/mail/static/src/js
parentba5133dc6329cf373a809f330eea5ef19367c232 (diff)
[IMP] chatter: improve chatter readability
Only messages as comments and email template should keep a white backround since they are not internal. It is also enough to display fields that changed on subtypes (update message) since emails will be reworked soon and more information will be given there. The support of 'always' track can be removed. (is now considered as a simple tracked field) The use of self.env.ref('mail.mt_comment').id add some query and the performance tests needs to be update since message_format is called by notify_by_chat. This code will be refactor later
Diffstat (limited to 'addons/mail/static/src/js')
-rw-r--r--addons/mail/static/src/js/chat_manager.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/mail/static/src/js/chat_manager.js b/addons/mail/static/src/js/chat_manager.js
index 9d1b9cddb70..35d16915341 100644
--- a/addons/mail/static/src/js/chat_manager.js
+++ b/addons/mail/static/src/js/chat_manager.js
@@ -130,6 +130,7 @@ function make_message (data) {
subtype_description: data.subtype_description,
is_author: data.author_id && data.author_id[0] === session.partner_id,
is_note: data.is_note,
+ is_discussion: data.is_discussion,
is_system_notification: (data.message_type === 'notification' && data.model === 'mail.channel')
|| data.info === 'transient_message',
attachment_ids: data.attachment_ids || [],