summaryrefslogtreecommitdiff
path: root/addons/google_account/controllers/main.py
diff options
context:
space:
mode:
authorjke-openerp <jke@openerp.com>2013-12-19 18:45:36 +0100
committerjke-openerp <jke@openerp.com>2013-12-19 18:45:36 +0100
commit4a1208b39bdb5866ea8fcc1419969bdb7255e199 (patch)
tree6c8c375c0ba2efd1c86fbc2b69316c7ed369cc82 /addons/google_account/controllers/main.py
parent59c932477edf0ccff68dfa18e97a3bd76b6e251d (diff)
[IMP] Redo tuto to get api key, because Google have changed console UI during the dev
bzr revid: jke@openerp.com-20131219174536-msjd005fxhxgl9qq
Diffstat (limited to 'addons/google_account/controllers/main.py')
-rw-r--r--addons/google_account/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/google_account/controllers/main.py b/addons/google_account/controllers/main.py
index 7576351e470..8e66f787e3b 100644
--- a/addons/google_account/controllers/main.py
+++ b/addons/google_account/controllers/main.py
@@ -21,7 +21,7 @@ class google_auth(http.Controller):
registry = openerp.modules.registry.RegistryManager.get(dbname)
with registry.cursor() as cr:
- if kw.get('code'):
+ if kw.get('code',False):
registry.get('google.%s' % service).set_all_tokens(cr,request.session.uid,kw['code'])
return werkzeug.utils.redirect(url_return)