diff options
| author | mgh-odoo <mgh@odoo.com> | 2019-10-23 11:43:29 +0000 |
|---|---|---|
| committer | Alexandre Kühn <aku@odoo.com> | 2019-11-29 08:56:15 +0000 |
| commit | 5c004c2e832a9ca6efbe1df1160051ed2cd44c5d (patch) | |
| tree | b8ed62b2f83a7cf6a1922f2a141634b6230fea22 /addons/mail/static/src/xml/thread_window.xml | |
| parent | bf18802c1dd00fb9b8b82cd6a884ce6b96eb1f09 (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/thread_window.xml')
| -rw-r--r-- | addons/mail/static/src/xml/thread_window.xml | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/addons/mail/static/src/xml/thread_window.xml b/addons/mail/static/src/xml/thread_window.xml index 3b2cd46f6f5..55d63a0f601 100644 --- a/addons/mail/static/src/xml/thread_window.xml +++ b/addons/mail/static/src/xml/thread_window.xml @@ -6,8 +6,14 @@ --> <t t-name="mail.ThreadWindow" t-extend="mail.AbstractThreadWindow"> <t t-jquery=".o_thread_window_header" t-operation="after"> - <t t-call="mail.thread_window.OutOfOffice" t-if="widget.getOutOfOfficeInfo() or widget.getOutOfOfficeMessage()"/> - <div t-if="!widget.hasThread()" class="o_thread_search_input"> + <t t-if="widget.hasThread()"> + <t t-if="widget.getThread().hasOutOfOffice()"> + <t t-call="mail.thread.OutOfOffice"> + <t t-set="thread" t-value="widget.getThread()"/> + </t> + </t> + </t> + <div t-else="" class="o_thread_search_input"> <span> To: </span> <input type="text" placeholder="User name"/> </div> @@ -15,17 +21,6 @@ </t> <!-- - @param {mail.ThreadWindow} widget - --> - <div class="o_out_of_office" t-name="mail.thread_window.OutOfOffice"> - <div class="o_out_of_office_info" t-if="widget.getOutOfOfficeInfo()" t-esc="widget.getOutOfOfficeInfo()"/> - <div class="o_out_of_office_text o_text_wrap" t-if="widget.getOutOfOfficeMessage()"> - <t t-esc="widget.getOutOfOfficeMessage()"/> - <a href="#" class="o_out_of_office_read_more_less_button">Read more</a> - </div> - </div> - - <!-- @param {string} expandTitle text to display on mouse hover (title attribute) --> <t t-extend="mail.AbstractThreadWindow.HeaderContent"> |
