From 98c3539a3a2c08790dde8cf0591c27c77ee6f917 Mon Sep 17 00:00:00 2001 From: Emanuel Cino Date: Wed, 25 Apr 2018 09:48:50 +0200 Subject: [PATCH] [IMP] Display email_from instead of author - This gives more complete information about the original sender --- mail_forward/static/src/js/mail_forward.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mail_forward/static/src/js/mail_forward.js b/mail_forward/static/src/js/mail_forward.js index 0650b6daa8..577e6b2137 100644 --- a/mail_forward/static/src/js/mail_forward.js +++ b/mail_forward/static/src/js/mail_forward.js @@ -15,8 +15,8 @@ odoo.define('mail_forward.forward', function (require) { ChatThread.include({ on_message_forward: function (message_id) { var self = this; - var read_fields = ['record_name', 'parent_id', 'subject', 'attachment_ids', 'author_id', 'date', - 'email_to', 'email_cc', 'model', 'res_id', 'body']; + var read_fields = ['record_name', 'parent_id', 'subject', 'attachment_ids', 'date', + 'email_to', 'email_from', 'email_cc', 'model', 'res_id', 'body']; // Generate email subject as possible from record_name and subject MessageModel.call('read', [message_id, read_fields], {context: session.user_context}).then(function (result) { var message = result[0]; @@ -39,8 +39,8 @@ odoo.define('mail_forward.forward', function (require) { // Get necessary fields from the forwarded message var header = [ "----------" + _t("Forwarded message") + "----------", - _t("From: ") + message.author_id[1], - _t("Date: ") + message.date, + _t("From: ") + message.email_from, + _t("Date: ") + message.date ]; if (message.subject) { header.push(_t("Subject: ") + message.subject);