Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

google calendar sync error in odoo8

By
Giovanny Vizcaya
on 10/14/15, 3:07 PM 377 views

i'm trying to do a synchronization with google calendar and i get this error:


Traceback (most recent call last):

File "/home/gio666/odoo/openerp/http.py", line 537, in _handle_exception

return super(JsonRequest, self)._handle_exception(exception)

File "/home/gio666/odoo/openerp/http.py", line 574, in dispatch

result = self._call_function(**self.params)

File "/home/gio666/odoo/openerp/http.py", line 310, in _call_function

return checked_call(self.db, *args, **kwargs)

File "/home/gio666/odoo/openerp/service/model.py", line 113, in wrapper

return f(dbname, *args, **kwargs)

File "/home/gio666/odoo/openerp/http.py", line 307, in checked_call

return self.endpoint(*a, **kw)

File "/home/gio666/odoo/openerp/http.py", line 803, in __call__

return self.method(*args, **kw)

File "/home/gio666/odoo/openerp/http.py", line 403, in response_wrap

response = f(*args, **kw)

File "/home/gio666/odoo/openerp/addons/google_calendar/controllers/main.py", line 43, in sync_data

return gc_obj.synchronize_events(request.cr, request.uid, [], context=kw.get('local_context'))

File "/home/gio666/odoo/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/home/gio666/odoo/openerp/addons/google_calendar/google_calendar.py", line 577, in synchronize_events

st, current_google, ask_time = self.get_calendar_primary_id(cr, user_to_sync, context=context)

File "/home/gio666/odoo/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/home/gio666/odoo/openerp/addons/google_calendar/google_calendar.py", line 302, in get_calendar_primary_id

if (e.code == 401): # Token invalid / Acces unauthorized

AttributeError: 'Warning' object has no attribute 'code'


how can i solve?

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 10/14/15, 3:07 PM
Seen: 377 times
Last updated: 11/29/15, 2:59 AM