From dbe131235555d2f9f08aff4d554dcec379d776a9 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Wed, 30 Jan 2013 13:15:23 +0100 Subject: [PATCH] [IMP] mail: display unread button on all documents chatter messages bzr revid: chm@openerp.com-20130130121523-8ox71me2w0mlb46u --- addons/mail/static/src/js/mail.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index f428dc043cf..a24fcd66d02 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -232,9 +232,9 @@ openerp.mail = function (session) { else { this.options.show_read = this.to_read; this.options.show_unread = !this.to_read; - this.options.rerender = true; - this.options.toggle_read = true; } + this.options.rerender = true; + this.options.toggle_read = true; } this.parent_thread = parent.messages != undefined ? parent : this.options.root_thread; this.thread = false; @@ -1605,7 +1605,8 @@ openerp.mail = function (session) { this.node.params = _.extend({ 'display_indented_thread': -1, 'show_reply_button': false, - 'show_read_unread_button': false, + 'show_read_unread_button': true, + 'read_action': 'unread', 'show_record_name': false, 'show_compact_message': 1, }, this.node.params);