From c928553647ffbbd02f290b657a44b0a7a48e528c Mon Sep 17 00:00:00 2001 From: Ivan Yelizariev Date: Fri, 16 Jan 2015 17:15:23 +0200 Subject: [PATCH] open inbox by menu_id, because when it was by action web page is not refreshed inbox is already opened --- im_notif/im_notif_models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/im_notif/im_notif_models.py b/im_notif/im_notif_models.py index 03858b6..48c3697 100644 --- a/im_notif/im_notif_models.py +++ b/im_notif/im_notif_models.py @@ -68,8 +68,8 @@ class mail_notification(models.Model): return email_pids, im_uids def _message2im(self, cr, uid, message): - inbox_action = self.pool['ir.model.data'].xmlid_to_res_id(cr, SUPERUSER_ID, 'mail.action_mail_inbox_feeds') - inbox_url = '#action=%s' % inbox_action + inbox_action = self.pool['ir.model.data'].xmlid_to_res_id(cr, SUPERUSER_ID, 'mail.mail_inboxfeeds') + inbox_url = '#menu_id=%s' % inbox_action url = None if message.res_id: url = '#id=%s&model=%s&view_type=form' % (