Community mailing list archives

community@mail.odoo.com

Re: Error syncing to Google Calendar

by
Martin Trigaux (mat)
- 07/22/2015 05:41:42
Hello,

Indeed, it seems the email is not required. It's an issue from our code
assuming Google always returns an email (which is apparently not always
the case).
I have just fixed it in 8.0 (revision caac19c) so if you update your
code, you should not have this issue anymore.

Martin

On 21/07/15 05:07, Abhishek Mehta wrote:
> in  above line there dictionary coming named as google_attendee where
> system can not find ['email'] key.
> 
> On Mon, Jul 20, 2015 at 10:17 PM, Mark Lewis <marklewis56@gmail.com
> <mailto: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 <mailto:community@mail.odoo.com>
>     Unsubscribe: https://www.odoo.com/groups?unsubscribe
> 
> 
> _______________________________________________
> Mailing-List: https://www.odoo.com/groups/community-59
> Post to: mailto:community@mail.odoo.com
> Unsubscribe: https://www.odoo.com/groups?unsubscribe
> 

-- 
Martin Trigaux
Odoo (Formerly OpenERP)
https://odoo.com
https://github.com/mart-e