[FIX] web,calendar: fix mismatched tags

This commit replaces a closing </xpath> with a </div>, and also prevents some
potential issues with class overrides for the div.

closes odoo/odoo#119196

Signed-off-by: Arnaud Joset <arj@odoo.com>
This commit is contained in:
Viktors Lipskis (vili)
2023-04-21 10:53:06 +02:00
parent a40039632c
commit a216ee0bc3
2 changed files with 3 additions and 4 deletions
@@ -2,8 +2,8 @@
<templates xml:space="preserve">
<t t-name="calendar.Many2ManyAttendeeExpandable" t-inherit="web.Many2ManyTagsAvatarField" t-inherit-mode="primary" owl="1">
<div id="many2many_tags_avatar_field_container" position="attributes">
<attribute name="class">o_field_tags d-inline-flex flex-wrap w-100</attribute>
<xpath expr="//div[hasclass('many2many_tags_avatar_field_container')]" position="attributes">
<attribute name="class" remove="mw-100" add="w-100" separator=" "/>
</xpath>
<xpath expr="//TagsList" position="attributes">
<attribute name="itemsVisible">state.expanded ? tags.length : 5</attribute>
@@ -3,8 +3,7 @@
<t t-name="web.Many2ManyTagsAvatarField" owl="1">
<div
id="many2many_tags_avatar_field_container"
class="o_field_tags d-inline-flex flex-wrap mw-100"
class="many2many_tags_avatar_field_container o_field_tags d-inline-flex flex-wrap mw-100"
t-att-class="{'o_tags_input o_input': !props.readonly}"
>
<TagsList tags="tags" itemsVisible="itemsVisible"/>