Skip to content

Commit

Permalink
⚡ mail_to New: channels are displayed in recipients
Browse files Browse the repository at this point in the history
  • Loading branch information
Ommo73 committed Jul 29, 2019
1 parent a9f6555 commit 3781c16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mail_to/static/src/xml/recipient.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<t t-jquery="p[class=o_mail_info] span:last" t-operation="after">
<span class="recipients_info"><t t-if="message.partner_ids">
<t t-if="message.partner_ids.length > 0">To: </t>
<t t-else="message.channel_names.length > 0">To: </t>
<t t-else="message.channel_ids.length > 0">To: </t>
<t t-foreach="message.partner_ids.length" t-as="i">
<t t-if="i &lt; message.more_recipients_value">
<a t-att-href="_.str.sprintf('/web?#id=%s&amp;view_type=form&amp;model=res.partner', message.partner_ids[i][0])" class="recipient_link">
Expand All @@ -19,8 +19,8 @@

<t t-if="message.channel_names">
<t t-foreach="message.channel_ids.length" t-as="i">
<t t-if="message.partner_ids.length &lt; 4 and (message.partner_ids.length + i) &lt; 4">
<a t-att-href="_.str.sprintf('/web?#id=%s&amp;view_type=form&amp;model=mail.channel', message.channel_names[i][0])" class="recipient_link">
<t t-if="message.partner_ids.length &lt; message.more_recipients_value and (message.partner_ids.length + i) &lt; message.more_recipients_value">
<a t-if="message.channel_names[i]" t-att-href="_.str.sprintf('/web?#id=%s&amp;view_type=form&amp;model=mail.channel', message.channel_names[i][0])" class="recipient_link">
<i t-esc="message.channel_names[i][1]"/><t t-if="i &lt; message.channel_ids.length - 1">; </t>
</a>
</t>
Expand Down

0 comments on commit 3781c16

Please sign in to comment.