Browse Source
open inbox by menu_id, because when it was by action web page is not refreshed inbox is already opened
pull/117/head
Ivan Yelizariev
10 years ago
committed by
Ildar Nasyrov
No known key found for this signature in database
GPG Key ID: D1FDACDF9B83578
1 changed files with
2 additions and
2 deletions
-
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' % ( |
|
|