[FIX] mail: reply message type

- On a model, log a note and ping User A
- Go in the inbox of User A, and reply to the message

The reply is a comment (therefore sent to all followers of the
document), not a note.

opw-710326
This commit is contained in:
Nicolas Martinelli
2017-03-23 11:14:42 +01:00
parent bfb2771d63
commit 0e7ced70c1
+1 -1
View File
@@ -572,7 +572,7 @@ var ChatAction = Widget.extend(ControlPanelMixin, {
var self = this;
var options = this.selected_message ? {} : {channel_id: this.channel.id};
if (this.selected_message) {
message.subtype = 'mail.mt_comment';
message.subtype = this.selected_message.is_note ? 'mail.mt_note': 'mail.mt_comment';
message.subtype_id = false;
message.message_type = 'comment';
message.content_subtype = 'html';