summaryrefslogtreecommitdiff
path: root/addons/hr_holidays/static/src/components/thread_view/thread_view.xml
diff options
context:
space:
mode:
Diffstat (limited to 'addons/hr_holidays/static/src/components/thread_view/thread_view.xml')
-rw-r--r--addons/hr_holidays/static/src/components/thread_view/thread_view.xml10
1 files changed, 10 insertions, 0 deletions
diff --git a/addons/hr_holidays/static/src/components/thread_view/thread_view.xml b/addons/hr_holidays/static/src/components/thread_view/thread_view.xml
new file mode 100644
index 00000000000..f5e0dce55d8
--- /dev/null
+++ b/addons/hr_holidays/static/src/components/thread_view/thread_view.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<templates xml:space="preserve">
+ <t t-inherit="mail.ThreadView" t-inherit-mode="extension">
+ <xpath expr="//*[@name='loadingCondition']" position="before">
+ <t t-if="threadView.thread.correspondent and threadView.thread.correspondent.out_of_office_date_end">
+ <div class="o_ThreadView_outOfOffice alert alert-primary" t-esc="getOutOfOfficeText()" role="alert"/>
+ </t>
+ </xpath>
+ </t>
+</templates>