diff options
| author | XavierDo <xdo@odoo.com> | 2018-09-05 18:19:59 +0200 |
|---|---|---|
| committer | Olivier Dony <odo@odoo.com> | 2018-09-06 10:34:14 +0200 |
| commit | 62928bb81a2ff0867cb620db9c35b4680e750d32 (patch) | |
| tree | ef4fbd2a540a2672aeb12728fa798f9bf523fc89 /addons/mail/static/src/xml/thread.xml | |
| parent | 554414b90fde3ee0e216e02e0ab0c81f6735b38d (diff) | |
[FIX] mail: make red envelope visible when necessary
We need to know if a notification is in failure by
displaying the red envelope in even if all partner are inactive.
This commit also fix the filter in order to display notification
of all active partners if there is an exception.
Diffstat (limited to 'addons/mail/static/src/xml/thread.xml')
| -rw-r--r-- | addons/mail/static/src/xml/thread.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/mail/static/src/xml/thread.xml b/addons/mail/static/src/xml/thread.xml index ca8ae9b8319..325f274f958 100644 --- a/addons/mail/static/src/xml/thread.xml +++ b/addons/mail/static/src/xml/thread.xml @@ -174,7 +174,8 @@ <t t-if="message.origin_id and (message.origin_id !== options.channel_id)"> (from <a t-att-data-oe-id="message.origin_id" href="#">#<t t-esc="message.origin_name"/></a>) </t> - <span t-if="options.display_email_icon and message.customer_email_data and message.customer_email_data.length" class="o_thread_tooltip_container"> + <span t-if="options.display_email_icon and ((message.customer_email_data and message.customer_email_data.length) or ['exception', 'bounce'].indexOf(message.customer_email_status) > -1)" class="o_thread_tooltip_container"> + <t t-set="fatype" t-value="''"/> <t t-if="message.customer_email_status === 'sent' or message.customer_email_status === 'ready'"> <t t-set="fatype" t-value="'-o'"/> |
