diff options
| author | dle@openerp.com <> | 2013-03-19 16:41:39 +0100 |
|---|---|---|
| committer | dle@openerp.com <> | 2013-03-19 16:41:39 +0100 |
| commit | a4f6533f3acfdbbafe38c14c31b9b8f26e0d3f2e (patch) | |
| tree | ab133c6dd30283c617f8e392567976147534563c /addons/auth_oauth/controllers | |
| parent | 4ab080bc03234af1da25e269ac0e83f7ba310605 (diff) | |
[FIX]auth_signup: string concatenation now allowing action_id(integer) + able to redict to menu_id if no action given
bzr revid: dle@openerp.com-20130319154139-283864fcfixvmw0g
Diffstat (limited to 'addons/auth_oauth/controllers')
| -rw-r--r-- | addons/auth_oauth/controllers/main.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/addons/auth_oauth/controllers/main.py b/addons/auth_oauth/controllers/main.py index 1c38f7f4eae..3f7ef2f3f0c 100644 --- a/addons/auth_oauth/controllers/main.py +++ b/addons/auth_oauth/controllers/main.py @@ -64,8 +64,13 @@ class OAuthController(oeweb.Controller): u = registry.get('res.users') credentials = u.auth_oauth(cr, SUPERUSER_ID, provider, kw, context=context) cr.commit() - action = state.get('a', None) - url = '/#action=' + action if action else '/' + action = state.get('a') + menu = state.get('m') + url = '/' + if action: + url = '/#action=%s' % action + elif menu: + url = '/#menu_id=%s' % menu return login_and_redirect(req, *credentials, redirect_url=url) except AttributeError: # auth_signup is not installed |
