Community mailing list archives

community@mail.odoo.com

Re: Error syncing to Google Calendar

by
Abhishek Mehta
- 07/21/2015 00:04:36
Hi mark,

the error says it all.

attendee_id = res_partner_obj.search(cr, uid, [('email', '=', google_attendee['email'])], 
in  above line there dictionary coming named as google_attendee where system can not find ['email'] key.

Please try to print that dictionary before your search and you will know the issue.

-
Regards,
Abhishek Mehta
ERP Consultant,

Serpent Consulting Services Pvt. Ltd.
"Where Quality Time and Accuracy are valued the Most."
Web : http://www.serpentcs.com
Mobile : 91 - 9428277041
Skype: a.mehta.serpentcs



On Mon, Jul 20, 2015 at 10:17 PM, Mark Lewis <marklewis56@gmail.com> wrote:
Hello

Any idea what I can do, sync to Google Calendar fails although I created id and client secret as instructed.
Some calendar elements are synced and then I get this error message

What does it mean? Thanks
Regards Mark

Traceback (most recent call last):
  File "/home/odoo/src/odoo/8.0/openerp/http.py", line 537, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/odoo/src/odoo/8.0/openerp/http.py", line 574, in dispatch
    result = self._call_function(**self.params)
  File "/home/odoo/src/odoo/8.0/openerp/http.py", line 310, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/odoo/src/odoo/8.0/openerp/service/model.py", line 113, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/odoo/src/odoo/8.0/openerp/http.py", line 307, in checked_call
    return self.endpoint(*a, **kw)
  File "/home/odoo/src/odoo/8.0/openerp/http.py", line 803, in __call__
    return self.method(*args, **kw)
  File "/home/odoo/src/odoo/8.0/openerp/http.py", line 403, in response_wrap
    response = f(*args, **kw)
  File "/home/odoo/src/odoo/8.0/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/odoo/src/odoo/8.0/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/odoo/src/odoo/8.0/addons/google_calendar/google_calendar.py", line 599, in synchronize_events
    res = self.update_events(cr, user_to_sync, lastSync, context)
  File "/home/odoo/src/odoo/8.0/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/odoo/src/odoo/8.0/addons/google_calendar/google_calendar.py", line 826, in update_events
    res = self.update_from_google(cr, uid, False, event.GG.event, "create", context=context_tmp)
  File "/home/odoo/src/odoo/8.0/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/odoo/src/odoo/8.0/addons/google_calendar/google_calendar.py", line 435, in update_from_google
    attendee_id = res_partner_obj.search(cr, uid, [('email', '=', google_attendee['email'])], context=context)
KeyError: 'email'

--
Mark Lewis
02 97 24 86 18
06 73 27 65 95

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe