[IMP] mail: guard FollowerSubtypeComponent

Task-2797754

closes odoo/odoo#86823

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Alexandre Kühn
2022-03-23 13:40:46 +01:00
parent b28d151b1e
commit 1aa07b0f94
@@ -2,12 +2,14 @@
<templates xml:space="preserve">
<t t-name="mail.FollowerSubtype" owl="1">
<div class="o_FollowerSubtype" t-attf-class="{{ className }}" t-ref="root">
<label class="o_FollowerSubtype_label">
<input class="o_FollowerSubtype_checkbox" type="checkbox" t-att-checked="follower.selectedSubtypes.includes(followerSubtype) ? 'checked': ''" t-on-change="_onChangeCheckbox"/>
<t t-esc="followerSubtype.name"/>
</label>
</div>
<t t-if="followerSubtype">
<div class="o_FollowerSubtype" t-attf-class="{{ className }}" t-ref="root">
<label class="o_FollowerSubtype_label">
<input class="o_FollowerSubtype_checkbox" type="checkbox" t-att-checked="follower.selectedSubtypes.includes(followerSubtype) ? 'checked': ''" t-on-change="_onChangeCheckbox"/>
<t t-esc="followerSubtype.name"/>
</label>
</div>
</t>
</t>
</templates>