diff options
| author | Turkesh Patel (Open ERP) <tpa@tinyerp.com> | 2011-12-21 11:06:41 +0530 |
|---|---|---|
| committer | Turkesh Patel (Open ERP) <tpa@tinyerp.com> | 2011-12-21 11:06:41 +0530 |
| commit | a99cac9ff87015f607e46666cd89fe05dfa5c2dc (patch) | |
| tree | 23edba1a169683b410b2698476b4c7a4f5f467de /addons/plugin/plugin_handler.py | |
| parent | 583d85cd3b590664d9f5e080294e04eb1dc17e61 (diff) | |
| parent | bf47bea6f7b886384176c0dbb59860f72677e69e (diff) | |
[MRG] Merge with main addons.
bzr revid: tpa@tinyerp.com-20111221053641-0r8zg9wcirlldsw9
Diffstat (limited to 'addons/plugin/plugin_handler.py')
| -rw-r--r-- | addons/plugin/plugin_handler.py | 5 |
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): |
