Browse Source

open inbox by menu_id, because when it was by action web page is not refreshed inbox is already opened

pull/183/head
Ivan Yelizariev 10 years ago
committed by Ivan Yelizariev
parent
commit
943f50f95e
  1. 4
      im_notif/im_notif_models.py

4
im_notif/im_notif_models.py

@ -68,8 +68,8 @@ class mail_notification(models.Model):
return email_pids, im_uids return email_pids, im_uids
def _message2im(self, cr, uid, message): 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 url = None
if message.res_id: if message.res_id:
url = '#id=%s&model=%s&view_type=form' % ( url = '#id=%s&model=%s&view_type=form' % (

Loading…
Cancel
Save