[IMP] mail: guard ComposerSuggestionComponent

Task-2797754

closes odoo/odoo#86795

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Alexandre Kühn
2022-03-22 22:12:23 +01:00
parent ae4b370768
commit a00e016692
@@ -2,8 +2,8 @@
<templates xml:space="preserve">
<t t-name="mail.ComposerSuggestion" owl="1">
<a class="o_ComposerSuggestion dropdown-item" t-att-class="{ 'active': props.isActive }" t-attf-class="{{ className }}" href="#" t-att-title="record and title()" role="menuitem" t-on-click="_onClick" t-ref="root">
<t t-if="record">
<t t-if="record">
<a class="o_ComposerSuggestion dropdown-item" t-att-class="{ 'active': props.isActive }" t-attf-class="{{ className }}" href="#" t-att-title="title()" role="menuitem" t-on-click="_onClick" t-ref="root">
<t t-if="isCannedResponse">
<span class="o_ComposerSuggestion_part1 text-truncate"><t t-esc="record.source"/></span>
<span class="o_ComposerSuggestion_part2 text-truncate"><t t-esc="record.substitution"/></span>
@@ -26,8 +26,8 @@
<span class="o_ComposerSuggestion_part2 text-truncate">(<t t-esc="record.email"/>)</span>
</t>
</t>
</t>
</a>
</a>
</t>
</t>
</templates>