Skip to content

Commit

Permalink
[FIX] mail: display both tracking values and body of the messages in …
Browse files Browse the repository at this point in the history
…mail thread

Before that, the body of the message was never displayed if the message had tracking values. This was annoying for account_asset module, were we prompt the user for some justification when she modifies the depreciation data of an asset, and then call message_post with this text as body, and tracking values reflecting the change that was made.
  • Loading branch information
oco-odoo committed Oct 26, 2018
1 parent 9647620 commit ac08e2b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions addons/mail/static/src/xml/thread.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,16 +121,14 @@
t-att-data-message-id="message.id" title="Mark as Read"/>
</span>
</p>
<t t-raw="message.body"/>
<t t-if="message.tracking_value_ids &amp;&amp; message.tracking_value_ids.length &gt; 0">
<t t-if="message.subtype_description">
<p t-esc="message.subtype_description"/>
</t>
<t t-call="mail.ChatThread.MessageTracking"/>
</t>
<p t-if="options.display_subject &amp;&amp; message.display_subject" class="o_mail_subject">Subject: <t t-esc="message.subject"/></p>
<t t-if="!(message.tracking_value_ids &amp;&amp; message.tracking_value_ids.length &gt; 0)">
<t t-raw="message.body"/>
</t>
<t t-foreach="message.attachment_ids" t-as="attachment">
<t t-call="mail.Attachment"/>
</t>
Expand Down

0 comments on commit ac08e2b

Please sign in to comment.