[FIX] google_calendar: attendee's email is not required

You may get a google_attendee without email from Google, cf #3853
This commit is contained in:
Martin Trigaux 2015-07-22 10:37:50 +01:00
parent 4ac9bfb619
commit caac19c102
1 changed files with 1 additions and 1 deletions

View File

@ -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']
}