summaryrefslogtreecommitdiff
path: root/addons/plugin/plugin_handler.py
diff options
context:
space:
mode:
authorRaphael Collet <rco@openerp.com>2011-12-21 09:02:39 +0100
committerRaphael Collet <rco@openerp.com>2011-12-21 09:02:39 +0100
commit7fc484d8db1d9d0cc56052964489d06ab4efcab3 (patch)
treee23da79622541e12a9e05b7b41d9b5659316ad9d /addons/plugin/plugin_handler.py
parentcf25c6dfa4ac228e7771b092bdd890e81b0e3a8e (diff)
parentf98e436c266596bb235b39a17f667b053e079bb9 (diff)
[MERGE] trunk
bzr revid: rco@openerp.com-20111221080239-u15yatiij3qkr871
Diffstat (limited to 'addons/plugin/plugin_handler.py')
-rw-r--r--addons/plugin/plugin_handler.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/addons/plugin/plugin_handler.py b/addons/plugin/plugin_handler.py
index fd5ca7da6c6..8a9f2073c2d 100644
--- a/addons/plugin/plugin_handler.py
+++ b/addons/plugin/plugin_handler.py
@@ -12,13 +12,14 @@ class plugin_handler(osv.osv_memory):
def _make_url(self, cr, uid, res_id, model, context=None):
"""
- @param id: on which document the message is pushed
+ @param res_id: on which document the message is pushed
@param model: name of the document linked with the mail
@return url
"""
base_url = self.pool.get('ir.config_parameter').get_param(cr, uid, 'web.base.url', default='http://localhost:8069', context=context)
if base_url:
- base_url += '/?id=%s&model=%s'%(res_id,model)
+ user = self.pool.get('res.users').browse(cr, uid, uid, context=context)
+ base_url += '/web/webclient/login?db=%s&login=%s&key=%s#id=%s&model=%s' % (cr.dbname, user.login, user.password, res_id, model)
return base_url
def is_installed(self, cr, uid):