From caac19c1022344367efa173fda198277e6f0cf85 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Wed, 22 Jul 2015 10:37:50 +0100 Subject: [PATCH] [FIX] google_calendar: attendee's email is not required You may get a google_attendee without email from Google, cf #3853 --- addons/google_calendar/google_calendar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/google_calendar/google_calendar.py b/addons/google_calendar/google_calendar.py index d55e31dafd6..b942400dcb5 100644 --- a/addons/google_calendar/google_calendar.py +++ b/addons/google_calendar/google_calendar.py @@ -435,7 +435,7 @@ class google_calendar(osv.AbstractModel): attendee_id = res_partner_obj.search(cr, uid, [('email', '=', google_attendee['email'])], context=context) if not attendee_id: data = { - 'email': google_attendee['email'], + 'email': google_attendee.get('email', False), 'customer': False, 'name': google_attendee.get("displayName", False) or google_attendee['email'] }