[trunk] traceback when applying general setting (google ?)

Bug #1220216 reported by Aline (OpenERP)
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Medium
OpenERP R&D Addons Team 1

Bug Description

trunk, db all, runbot, go to Settings/configuration/general settings, apply. I think is comes from google

Traceback (most recent call last):
  File "/home/odoo/runbot/static/openerp-dev-trunk-job-positions-19065/server/openerp/addons/web/http.py", line 314, in dispatch
    response["result"] = self._call_function(**self.params)
  File "/home/odoo/runbot/static/openerp-dev-trunk-job-positions-19065/server/openerp/addons/web/http.py", line 174, in _call_function
    return self.func(*args, **kwargs)
  File "/home/odoo/runbot/static/openerp-dev-trunk-job-positions-19065/server/openerp/addons/web/http.py", line 1053, in nfunc
    return func(*args, **kwargs)
  File "/home/odoo/runbot/static/openerp-dev-trunk-job-positions-19065/server/openerp/addons/web/controllers/main.py", line 1095, in call_button
    action = self._call_kw(model, method, args, {})
  File "/home/odoo/runbot/static/openerp-dev-trunk-job-positions-19065/server/openerp/addons/web/controllers/main.py", line 1083, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
  File "/home/odoo/runbot/static/openerp-dev-trunk-job-positions-19065/server/openerp/addons/base/res/res_config.py", line 560, in execute
    getattr(self, method)(cr, uid, ids, context)
  File "/home/odoo/runbot/static/openerp-dev-trunk-job-positions-19065/server/openerp/addons/google_drive/google_drive.py", line 226, in set_google_authorization_code
    refresh_token = self.pool['google.service'].generate_refresh_token(cr, uid, 'drive', config.google_drive_authorization_code, context=context)
  File "/home/odoo/runbot/static/openerp-dev-trunk-job-positions-19065/server/openerp/addons/google_base_account/google_base_account.py", line 52, in generate_refresh_token
    return content.get('refresh_token')
UnboundLocalError: local variable 'content' referenced before assignment

Changed in openobject-addons:
status: New → Confirmed
importance: Undecided → Medium
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.