diff options
| author | Christophe Simonis <chs@openerp.com> | 2011-12-20 17:25:06 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@openerp.com> | 2011-12-20 17:25:06 +0100 |
| commit | 60ee12e6e1b436a20c53523ebcbb9e093a2a6284 (patch) | |
| tree | f9a693a5d9761659f9d0fce0b92c65050f45fd2e /addons/plugin/plugin_handler.py | |
| parent | 63f9ead5ac2c73d4e847a2f16d6abfaf2daa453f (diff) | |
[FIX] plugin: correct generated url for documents
bzr revid: chs@openerp.com-20111220162506-001gf9whw9jhbl82
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): |
