From 6116b1e263bda1f08cb29a43a86ee1f569162fa5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thibault=20Delavall=C3=A9e?= Date: Tue, 26 Feb 2013 14:23:02 +0100 Subject: [PATCH] [FIX] Chatter: auto_follow back on suggested recipients. bzr revid: tde@openerp.com-20130226132302-p156h39p9d8syxxt --- addons/mail/static/src/js/mail.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index 352eba7..f86f1d5 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -549,6 +549,7 @@ openerp.mail = function (session) { 'default_body': mail.ChatterUtils.get_text2html(self.$el ? (self.$el.find('textarea:not(.oe_compact)').val() || '') : ''), 'default_attachment_ids': self.attachment_ids, 'default_partner_ids': partner_ids, + 'mail_post_autofollow': true, }; if (self.is_log) { _.extend(context, {'mail_compose_log': true}); @@ -707,7 +708,7 @@ openerp.mail = function (session) { 'parent_id': this.context.default_parent_id, 'attachment_ids': _.map(this.attachment_ids, function (file) {return file.id;}), 'partner_ids': partner_ids, - 'context': this.parent_thread.context, + 'context': _.extend(this.parent_thread.context, {'mail_post_autofollow': true}), 'type': 'comment', 'content_subtype': 'plaintext', }; -- 1.7.10.4