[FIX] hr_holidays: remove border-radius from alerts in discuss

Before this commit, due to milk changes, when a user was out of the
office, an alert box with a border-radius was displayed at the top of
the chat. This border-radius needed to be removed.

This commit effectively resolves this issue.

task-3337778
part of task-3326263

closes odoo/odoo#123023

X-original-commit: 41685396c75aa7902e480629b91143381cca8bd1
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
Xavier Luyckx (xlu)
2023-05-31 13:08:21 +02:00
parent 7139a0db35
commit 48ec76d24e
@@ -2,7 +2,7 @@
<templates xml:space="preserve">
<t t-inherit="mail.Thread" t-inherit-mode="extension">
<xpath expr="//*[hasclass('o-mail-Thread')]" position="before">
<div t-if="props.thread.model === 'discuss.channel' and props.thread.correspondent and personaService.outOfOfficeText(props.thread.correspondent)" class="alert alert-primary" t-esc="personaService.outOfOfficeText(props.thread.correspondent)" role="alert"/>
<div t-if="props.thread.model === 'discuss.channel' and props.thread.correspondent and personaService.outOfOfficeText(props.thread.correspondent)" class="alert alert-primary rounded-0" t-esc="personaService.outOfOfficeText(props.thread.correspondent)" role="alert"/>
</xpath>
</t>
</templates>