'Create event in google calendar for the event not already
synchronized, for the current user.
:returns list of new created event identifier in google calendar'

def create_new_events(self):

    new_ids = []
    my_partner_id = self.env.user.partner_id.id
    my_attendees = self.env['calendar.attendee'].with_context(virtual_id=False).search([('partner_id', '=', my_partner_id), ('google_internal_event_id', '=', False), '|', ('event_id.stop', '>', fields.Datetime.to_string(self.get_minTime())), ('event_id.final_date', '>', fields.Datetime.to_string(self.get_minTime()))])
    for att in my_attendees:
        other_google_ids = [other_att.google_internal_event_id for other_att in att.event_id.attendee_ids if (other_att.google_internal_event_id and (other_att.id != att.id))]
        for other_google_id in other_google_ids:
            if self.get_one_event_synchro(other_google_id):
                att.write({'google_internal_event_id': other_google_id})
                break
        else:
            if ((not att.event_id.recurrent_id) or (att.event_id.recurrent_id == 0)):
                (status, response, ask_time) = self.create_an_event(att.event_id)
                if status_response(status):
                    update_date = datetime.strptime(response['updated'], '%Y-%m-%dT%H:%M:%S.%fz')
                    att.event_id.write({'oe_update_date': update_date})
                    new_ids.append(response['id'])
                    att.write({'google_internal_event_id': response['id'], 'oe_synchro_date': update_date})
                    self.env.cr.commit()
                else:
                    _logger.warning('Impossible    to    create    event    %s.    [%s]    Enable    DEBUG    for    response    detail.', att.event_id.id, status)
                    _logger.debug('Response    :    %s', response)
    return new_ids
