summaryrefslogtreecommitdiff
path: root/addons/plugin
diff options
context:
space:
mode:
authorDBR (OpenERP) <dbr@tinyerp.com>2011-12-21 10:40:08 +0530
committerDBR (OpenERP) <dbr@tinyerp.com>2011-12-21 10:40:08 +0530
commitdf46c438f07a80d2d31c48dd3bf3d685aba33472 (patch)
treea0c15d2c1a3e977f1a014ff11072d13af628c005 /addons/plugin
parentb137cb629d1be630e0636f9d167e4eab93012a26 (diff)
parentbf47bea6f7b886384176c0dbb59860f72677e69e (diff)
[Merge]with: lp:openobject-addons
bzr revid: dbr@tinyerp.com-20111221051008-lzmt20sj7lhsqmak
Diffstat (limited to 'addons/plugin')
-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):