Skip to content

Commit

Permalink
[IMP] Display email_from instead of author
Browse files Browse the repository at this point in the history
- This gives more complete information about the original sender
  • Loading branch information
ecino committed Jun 4, 2018
1 parent b192b47 commit 98c3539
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mail_forward/static/src/js/mail_forward.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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);
Expand Down

0 comments on commit 98c3539

Please sign in to comment.