summaryrefslogtreecommitdiff
path: root/addons/note/models
diff options
context:
space:
mode:
authorBarad Mahendra <mba@openerp.com>2018-03-30 17:38:20 +0530
committerThibault Delavallée <tde@odoo.com>2018-05-31 16:49:56 +0200
commit4a59f93d157638d75647cf26d91a4237e2e7b042 (patch)
tree803fbd36e098e4d724ceedd29d750667eeca4fec /addons/note/models
parent642970494e6f78741a8e0b792031957e4910e8ba (diff)
[IMP] mail, calendar: add today meetings in systray
Purpose of this commit is to display today meetings in the systray. This will help people in their daily job to have quickly access to their meetings. It is displayed along with activities and reminders to have all current work to do in the same place. Displayed meetings are ongoing or not yet started ones of the current day. All-day meetings of the current day are also shown. Done meetings are not displayed to lessen noise. Clicking on the systray will open the calendar view of meetings in a day mode. This is done by a small modification in the calendar view allowing to choose the display mode from context in addition to the mode attribute of the action definition. This commit is linked to task ID 60593. Closes #24438. Thanks to @ged-odoo for quick reviewing.
Diffstat (limited to 'addons/note/models')
-rw-r--r--addons/note/models/res_users.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/note/models/res_users.py b/addons/note/models/res_users.py
index 6f248c47664..d1bca02e65c 100644
--- a/addons/note/models/res_users.py
+++ b/addons/note/models/res_users.py
@@ -63,6 +63,7 @@ GROUP BY id"""
activities[note_index]['name'] = note_label
else:
activities.append({
+ 'type': 'activity',
'name': note_label,
'model': 'note.note',
'icon': modules.module.get_module_icon(self.env['note.note']._original_module),