[FIX] Chatter: auto_follow back on suggested recipients.

bzr revid: tde@openerp.com-20130226132302-p156h39p9d8syxxt
This commit is contained in:
Thibault Delavallée 2013-02-26 14:23:02 +01:00
parent 2d3ff2a217
commit 6116b1e263
1 changed files with 2 additions and 1 deletions

View File

@ -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_body': mail.ChatterUtils.get_text2html(self.$el ? (self.$el.find('textarea:not(.oe_compact)').val() || '') : ''),
'default_attachment_ids': self.attachment_ids, 'default_attachment_ids': self.attachment_ids,
'default_partner_ids': partner_ids, 'default_partner_ids': partner_ids,
'mail_post_autofollow': true,
}; };
if (self.is_log) { if (self.is_log) {
_.extend(context, {'mail_compose_log': true}); _.extend(context, {'mail_compose_log': true});
@ -707,7 +708,7 @@ openerp.mail = function (session) {
'parent_id': this.context.default_parent_id, 'parent_id': this.context.default_parent_id,
'attachment_ids': _.map(this.attachment_ids, function (file) {return file.id;}), 'attachment_ids': _.map(this.attachment_ids, function (file) {return file.id;}),
'partner_ids': partner_ids, 'partner_ids': partner_ids,
'context': this.parent_thread.context, 'context': _.extend(this.parent_thread.context, {'mail_post_autofollow': true}),
'type': 'comment', 'type': 'comment',
'content_subtype': 'plaintext', 'content_subtype': 'plaintext',
}; };