'This route/function is called when we want to remove all the references between one calendar OpenERP and one Google Calendar'

@http.route('/google_calendar/remove_references', type='json', auth='user')
def remove_references(self, model, **kw):

    status = 'NOP'
    if (model == 'calendar.event'):
        GoogleCal = request.env['google.calendar']
        context = kw.get('local_context', {})
        if GoogleCal.with_context(context).remove_references():
            status = 'OK'
        else:
            status = 'KO'
    return {'status': status}
