[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:
parent
4ac9bfb619
commit
caac19c102
|
@ -435,7 +435,7 @@ class google_calendar(osv.AbstractModel):
|
||||||
attendee_id = res_partner_obj.search(cr, uid, [('email', '=', google_attendee['email'])], context=context)
|
attendee_id = res_partner_obj.search(cr, uid, [('email', '=', google_attendee['email'])], context=context)
|
||||||
if not attendee_id:
|
if not attendee_id:
|
||||||
data = {
|
data = {
|
||||||
'email': google_attendee['email'],
|
'email': google_attendee.get('email', False),
|
||||||
'customer': False,
|
'customer': False,
|
||||||
'name': google_attendee.get("displayName", False) or google_attendee['email']
|
'name': google_attendee.get("displayName", False) or google_attendee['email']
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue