summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/xml/out_of_office.xml
diff options
context:
space:
mode:
authormgh-odoo <mgh@odoo.com>2019-10-23 11:43:29 +0000
committerAlexandre Kühn <aku@odoo.com>2019-11-29 08:56:15 +0000
commit5c004c2e832a9ca6efbe1df1160051ed2cd44c5d (patch)
treeb8ed62b2f83a7cf6a1922f2a141634b6230fea22 /addons/mail/static/src/xml/out_of_office.xml
parentbf18802c1dd00fb9b8b82cd6a884ce6b96eb1f09 (diff)
[IMP] mail: show out of office ribbon on discuss
This commit adds the out-of-office ribbon at the top of the conversation in the discuss app. Task-2066672 closes odoo/odoo#39362 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Co-authored-by: Mohammed Shekha <msh@odoo.com>
Diffstat (limited to 'addons/mail/static/src/xml/out_of_office.xml')
-rw-r--r--addons/mail/static/src/xml/out_of_office.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/addons/mail/static/src/xml/out_of_office.xml b/addons/mail/static/src/xml/out_of_office.xml
new file mode 100644
index 00000000000..89723daf5dc
--- /dev/null
+++ b/addons/mail/static/src/xml/out_of_office.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<templates xml:space="preserve">
+ <!--
+ @param {mail.model.AbstractThread} thread
+ -->
+ <div class="o_out_of_office" t-name="mail.thread.OutOfOffice">
+ <div class="o_out_of_office_info" t-if="thread.getOutOfOfficeInfo()" t-esc="thread.getOutOfOfficeInfo()"/>
+ <div class="o_out_of_office_text o_text_wrap" t-if="thread.getOutOfOfficeMessage()">
+ <t t-esc="thread.getOutOfOfficeMessage()"/>
+ <a href="#" class="o_out_of_office_read_more_less_button">Read more</a>
+ </div>
+ </div>
+</templates>