summaryrefslogtreecommitdiff
path: root/addons/mail/controllers
diff options
context:
space:
mode:
authorJigar Patel <jat@openerp.com>2016-03-25 16:39:12 +0530
committerYannick Tivisse <yti@odoo.com>2016-04-08 13:41:01 +0200
commit253d4eccf0001c5ede843cb29c1ce4f69fc6fbd0 (patch)
tree0c53a3819a2984672c8261945e71e8bb6013b089 /addons/mail/controllers
parente4ae6a80bb2d95a85d222d9012282919d5ebac0f (diff)
[IMP] mail: Add counter in starred
Diffstat (limited to 'addons/mail/controllers')
-rw-r--r--addons/mail/controllers/main.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/mail/controllers/main.py b/addons/mail/controllers/main.py
index 8fa7777ca5d..6aa5d854aaa 100644
--- a/addons/mail/controllers/main.py
+++ b/addons/mail/controllers/main.py
@@ -240,6 +240,7 @@ class MailController(http.Controller):
def mail_client_action(self):
values = {
'needaction_inbox_counter': request.env['res.partner'].get_needaction_count(),
+ 'starred_counter': request.env['res.partner'].get_starred_count(),
'channel_slots': request.env['mail.channel'].channel_fetch_slot(),
'mention_partner_suggestions': request.env['res.partner'].get_static_mention_suggestions(),
'emoji': request.env['mail.shortcode'].sudo().search_read([('shortcode_type', '=', 'image')], ['source', 'substitution', 'description']),