diff options
| author | Nikunj Ladava <nla@odoo.com> | 2018-02-02 06:21:44 +0000 |
|---|---|---|
| committer | Xavier-Do <xdo@odoo.com> | 2019-08-05 11:50:19 +0000 |
| commit | 0c37b9fb39005eab70ee8b39da84f79c981b2695 (patch) | |
| tree | f365ab14cca2a776cb0c91587f841ba95257f8de /addons/mail/static/src/xml/discuss.xml | |
| parent | 634bdbfa3a316fcaa9323f97bb59f198cd771b27 (diff) | |
[IMP] mail, test_mail: new 'History' mailbox in Discuss
This commit adds a new mailbox in the Discuss app called 'History'.
Messages that have been marked as read are moved to 'History'.
Notifications are required to link history messages to users. So
notifications are now deleted after they are more tha 6 months old.
This means History mailbox keeps less than 6 months old messages.
Note that this feature only works when user notifications are handled
in Odoo. This can be set in the user preferences, under the
"Notification Management" section.
Task-ID 402597
Diffstat (limited to 'addons/mail/static/src/xml/discuss.xml')
| -rw-r--r-- | addons/mail/static/src/xml/discuss.xml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/addons/mail/static/src/xml/discuss.xml b/addons/mail/static/src/xml/discuss.xml index afee3a84da2..71138ae1f24 100644 --- a/addons/mail/static/src/xml/discuss.xml +++ b/addons/mail/static/src/xml/discuss.xml @@ -60,6 +60,10 @@ <t t-set="counter" t-value="starred.getMailboxCounter()"/> <t t-call="mail.discuss.SidebarCounter"/> </div> + <div t-attf-class="o_mail_discuss_title_main o_mail_discuss_item #{(activeThreadID === 'mailbox_history') ? 'o_active': ''}" + data-thread-id="mailbox_history"> + <span class="o_thread_name"><i class="fa fa-history mr8"/>History</span> + </div> <div t-if="isMyselfModerator" t-attf-class="o_mail_discuss_title_main o_mail_discuss_item #{(activeThreadID == 'mailbox_moderation') ? 'o_active': ''}" data-thread-id="mailbox_moderation"> <span class="o_thread_name"> <i class="fa fa-envelope mr8"/>Moderation Queue</span> @@ -242,6 +246,9 @@ <button type="button" class="btn btn-secondary d-inline d-md-none o_mailbox_inbox_item" title="Starred" data-type="mailbox_starred"> Starred </button> + <button type="button" class="btn btn-secondary d-inline d-md-none o_mailbox_inbox_item" title="History" data-type="mailbox_history"> + History + </button> </div> <div class="o_mail_discuss_content"/> <div class="o_mail_mobile_tabs"> |
