[IMP] mail: guard ComposerSuggestedRecipientListComponent

Task-2797754

closes odoo/odoo#86794

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Alexandre Kühn
2022-03-22 22:12:18 +01:00
parent fd0d024419
commit ae4b370768
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">
<t t-name="mail.ComposerSuggestedRecipientList" owl="1">
<div class="o_ComposerSuggestedRecipientList" t-attf-class="{{ className }}" t-ref="root">
<t t-if="thread">
<t t-if="thread">
<div class="o_ComposerSuggestedRecipientList" t-attf-class="{{ className }}" t-ref="root">
<t t-foreach="state.hasShowMoreButton ? thread.suggestedRecipientInfoList : thread.suggestedRecipientInfoList.slice(0,3)" t-as="recipientInfo" t-key="recipientInfo.localId">
<ComposerSuggestedRecipient
suggestedRecipientInfoLocalId="recipientInfo.localId"
@@ -20,7 +20,7 @@
</button>
</t>
</t>
</t>
</div>
</div>
</t>
</t>
</templates>