projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27405c0
)
[IMP] /web/login redirects if already logged in
author
Fabien Meghazi
<fme@openerp.com>
Wed, 12 Mar 2014 10:32:39 +0000
(11:32 +0100)
committer
Fabien Meghazi
<fme@openerp.com>
Wed, 12 Mar 2014 10:32:39 +0000
(11:32 +0100)
bzr revid: fme@openerp.com-
20140312103239
-deyoc7t00g8kusd1
addons/web/controllers/main.py
patch
|
blob
|
history
diff --git
a/addons/web/controllers/main.py
b/addons/web/controllers/main.py
index
0074a88
..
c30cd05
100644
(file)
--- a/
addons/web/controllers/main.py
+++ b/
addons/web/controllers/main.py
@@
-663,6
+663,9
@@
class Home(http.Controller):
def web_login(self, redirect=None, **kw):
ensure_db()
+ if request.httprequest.method == 'GET' and redirect and request.session.uid:
+ return http.redirect_with_hash(redirect)
+
values = request.params.copy()
if not redirect:
redirect = '/web?' + request.httprequest.query_string