diff options
| author | XavierDo <xdo@odoo.com> | 2019-01-07 10:56:19 +0000 |
|---|---|---|
| committer | XavierDo <xdo@odoo.com> | 2019-02-07 12:53:03 +0000 |
| commit | 086405344e7302d9f7b243ba0c30d55131aeb3fe (patch) | |
| tree | 2d8390249e17d6aebbcc1e83f49ed03976cf52b9 /addons/mail/static/src/xml/thread_window.xml | |
| parent | c21d200285ebeb646b8e5be6ba233f96d9714c6f (diff) | |
[IMP] mail, hr_holidays: use leaves to compute im_status
When on leave, the im_status can be either leave_online or leave_offline.
This will allow to display a specific icon and a default message when the user
is not at the office.
The leave can have an out of office message. This message will be displayed
in the chat window instead of the user ooo message, and the end date of the leave will be displayed too.
Technical details.
Right now the im_status access leaves directly to know if a user is on leave or not.
An index has been added to optimise this request (thanks to rco).
A solution to optimise this would be to compute part of the information in a cron.
Task: 1856205
Diffstat (limited to 'addons/mail/static/src/xml/thread_window.xml')
| -rw-r--r-- | addons/mail/static/src/xml/thread_window.xml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/addons/mail/static/src/xml/thread_window.xml b/addons/mail/static/src/xml/thread_window.xml index 4d175fcf2b8..d519d0ebbec 100644 --- a/addons/mail/static/src/xml/thread_window.xml +++ b/addons/mail/static/src/xml/thread_window.xml @@ -6,8 +6,9 @@ --> <t t-name="mail.ThreadWindow" t-extend="mail.AbstractThreadWindow"> <t t-jquery=".o_thread_window_header" t-operation="after"> - <div class="o_out_of_office" t-if="widget.getOutOfOfficeMessage() !== undefined"> - <div class="o_out_of_office_text" t-esc="widget.getOutOfOfficeMessage()"/> + <div class="o_out_of_office" t-if="widget.getOutOfOfficeInfo() or widget.getOutOfOfficeMessage()"> + <div class="o_out_of_office_info" t-if="widget.getOutOfOfficeInfo()" t-esc="widget.getOutOfOfficeInfo()"/> + <div class="o_out_of_office_text" t-if="widget.getOutOfOfficeMessage()" t-esc="widget.getOutOfOfficeMessage()"/> </div> <div t-if="!widget.hasThread()" class="o_thread_search_input"> <span> To: </span> |
