Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Artificial Intelligence
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Property Management
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all IndustriesInauguration Odoo Lyon
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

Google Calendar sync problem

Subscriure's

Get notified when there's activity on this post

This question has been flagged
2 Respostes
5586 Vistes
Avatar
Vincent Boucher

Hello,

I have authorised the link between Odoo and Google Calendar, but when I try to sync Google Calendar to our Odoo 11 community (by clicking on the « sync with google » button), it shows this error : 

Traceback (most recent call last):
  File "/opt/odoo/odoo/odoo/http.py", line 647, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/odoo/odoo/odoo/http.py", line 307, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/opt/odoo/odoo/odoo/tools/pycompat.py", line 87, in reraise
    raise value
  File "/opt/odoo/odoo/odoo/http.py", line 689, in dispatch
    result = self._call_function(**self.params)
  File "/opt/odoo/odoo/odoo/http.py", line 339, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/odoo/odoo/service/model.py", line 97, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/odoo/odoo/http.py", line 332, in checked_call
    result = self.endpoint(*a, **kw)
  File "/opt/odoo/odoo/odoo/http.py", line 933, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/odoo/odoo/http.py", line 512, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/odoo/addons/google_calendar/controllers/main.py", line 43, in sync_data
    return GoogleCal.with_context(context).synchronize_events()
  File "/opt/odoo/odoo/addons/google_calendar/models/google_calendar.py", line 589, in synchronize_events
    res = recs.update_events(lastSync)
  File "/opt/odoo/odoo/addons/google_calendar/models/google_calendar.py", line 805, in update_events
    self.create_from_google(event, my_partner_id)
  File "/opt/odoo/odoo/addons/google_calendar/models/google_calendar.py", line 406, in create_from_google
    res = self.with_context(context_tmp).update_from_google(False, event.GG.event, "create")
  File "/opt/odoo/odoo/addons/google_calendar/models/google_calendar.py", line 518, in update_from_google
    res = CalendarEvent.create(result).id
  File "/opt/odoo/odoo/addons/crm/models/calendar.py", line 38, in create
    event = super(CalendarEvent, self).create(vals)
  File "/opt/odoo/odoo/addons/calendar/models/calendar.py", line 1525, in create
    meeting = super(Meeting, self).create(values)
  File "/opt/odoo/odoo/addons/mail/models/mail_thread.py", line 231, in create
    thread = super(MailThread, self).create(values)
  File "/opt/odoo/odoo/odoo/models.py", line 3315, in create
    self._fields[key].determine_inverse(record)
  File "/opt/odoo/odoo/odoo/fields.py", line 1070, in determine_inverse
    getattr(records, self.inverse)()
  File "/opt/odoo/odoo/addons/calendar/models/calendar.py", line 907, in _inverse_rrule
    meeting.update(data)
  File "/opt/odoo/odoo/odoo/models.py", line 4493, in update
    record[name] = value
  File "/opt/odoo/odoo/odoo/models.py", line 4697, in __setitem__
    return self._fields[key].__set__(self, value)
  File "/opt/odoo/odoo/odoo/fields.py", line 979, in __set__
    record.write({self.name: write_value})
  File "/opt/odoo/odoo/addons/google_calendar/models/calendar.py", line 25, in write
    return super(Meeting, self).write(values)
  File "/opt/odoo/odoo/addons/calendar/models/calendar.py", line 1482, in write
    self.env['calendar.alarm_manager'].notify_next_alarm(partners_to_notify)
  File "/opt/odoo/odoo/addons/calendar/models/calendar.py", line 463, in notify_next_alarm
    notif = self.sudo(user.id).get_next_notif()
  File "/opt/odoo/odoo/addons/calendar/models/calendar.py", line 413, in get_next_notif
    for one_date in meeting._get_recurrent_date_by_event():
  File "/opt/odoo/odoo/addons/calendar/models/calendar.py", line 622, in _get_recurrent_date_by_event
    return [d.astimezone(pytz.UTC) if d.tzinfo else d for d in rset1]
  File "/opt/odoo/odoo/addons/calendar/models/calendar.py", line 622, in <listcomp>
    return [d.astimezone(pytz.UTC) if d.tzinfo else d for d in rset1]
  File "/usr/local/lib/python3.5/dist-packages/dateutil/rrule.py", line 1385, in _iter
    advance_iterator(ritem)
  File "/usr/local/lib/python3.5/dist-packages/dateutil/rrule.py", line 1302, in __next__
    self.dt = advance_iterator(self.gen)
  File "/usr/local/lib/python3.5/dist-packages/dateutil/rrule.py", line 859, in _iter
    date = datetime.date.fromordinal(ii.yearordinal + i)
ValueError: year is out of range

Also, when I write to the calendar, it works, but then I try to delete some item, the sync doesn't work. Does anybody have any idea why?


Thank you

0
Avatar
Descartar
Avatar
Marco Viviani
Best Answer

Hi Vincent,I'm experiencing the same problem with Odoo 10: "ValueError: year is out of range".I spent days in searching a solution about this, I also upgraded to Odoo to 11 but no way.

Did you find a solution meanwhile? It seems that actually, integration with Google Calendar is a mirage for Odoo, as far as these problem keep raising. It seems that NO solution has been found in more than a year...

Thank you

Marco

1
Avatar
Descartar
Avatar
Sean Coley
Best Answer

I have the same issue. It synced a few events back and forth but Odoo did not download my full Google calendar. It eventually stopped syncing completely after an hour and gave me nearly the same error as yours:




Error:

Odoo Server Error


Traceback (most recent call last):

  File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\http.py", line 654, in _handle_exception

    return super(JsonRequest, self)._handle_exception(exception)

  File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\http.py", line 312, in _handle_exception

    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])

  File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\tools\pycompat.py", line 87, in reraise

    raise value

  File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\http.py", line 696, in dispatch

    result = self._call_function(**self.params)

  File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\http.py", line 344, in _call_function

    return checked_call(self.db, *args, **kwargs)

  File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\service\model.py", line 97, in wrapper

    return f(dbname, *args, **kwargs)

  File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\http.py", line 337, in checked_call

    result = self.endpoint(*a, **kw)

  File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\http.py", line 939, in __call__

    return self.method(*args, **kw)

  File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\http.py", line 517, in response_wrap

    response = f(*args, **kw)

  File "c:\program files (x86)\odoo 12.0e\server\odoo\addons\google_calendar\controllers\main.py", line 43, in sync_data

    return GoogleCal.with_context(context).synchronize_events()

  File "c:\program files (x86)\odoo 12.0e\server\odoo\addons\google_calendar\models\google_calendar.py", line 592, in synchronize_events

    res = recs.update_events(lastSync)

  File "c:\program files (x86)\odoo 12.0e\server\odoo\addons\google_calendar\models\google_calendar.py", line 809, in update_events

    self.create_from_google(event, my_partner_id)

  File "c:\program files (x86)\odoo 12.0e\server\odoo\addons\google_calendar\models\google_calendar.py", line 407, in create_from_google

    res = self.with_context(context_tmp).update_from_google(False, event.GG.event, "create")

  File "c:\program files (x86)\odoo 12.0e\server\odoo\addons\google_calendar\models\google_calendar.py", line 521, in update_from_google

    res = CalendarEvent.create(result).id

  File "<decorator-gen-285>", line 2, in create

  File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\api.py", line 430, in _model_create_single

    return create(self, arg)

  File "c:\program files (x86)\odoo 12.0e\server\odoo\addons\crm\models\calendar.py", line 38, in create

    event = super(CalendarEvent, self).create(vals)

  File "<decorator-gen-134>", line 2, in create

  File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\api.py", line 430, in _model_create_single

    return create(self, arg)

  File "c:\program files (x86)\odoo 12.0e\server\odoo\addons\calendar\models\calendar.py", line 1618, in create

    meeting = super(Meeting, self).create(values)

  File "<decorator-gen-124>", line 2, in create

  File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\api.py", line 451, in _model_create_multi

    return create(self, [arg])

  File "c:\program files (x86)\odoo 12.0e\server\odoo\addons\mail\models\mail_thread.py", line 273, in create

    threads = super(MailThread, self).create(vals_list)

  File "<decorator-gen-3>", line 2, in create

  File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\api.py", line 452, in _model_create_multi

    return create(self, arg)

  File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\models.py", line 3579, in create

    fields[0].determine_inverse(batch_recs)

  File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\fields.py", line 1114, in determine_inverse

    getattr(records, self.inverse)()

  File "c:\program files (x86)\odoo 12.0e\server\odoo\addons\calendar\models\calendar.py", line 939, in _inverse_rrule

    meeting.update(data)

  File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\models.py", line 4899, in update

    record[name] = value

  File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\models.py", line 5107, in __setitem__

    return self._fields[key].__set__(self, value)

  File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\fields.py", line 1023, in __set__

    record.write({self.name: write_value})

  File "c:\program files (x86)\odoo 12.0e\server\odoo\addons\google_calendar\models\calendar.py", line 25, in write

    return super(Meeting, self).write(values)

  File "c:\program files (x86)\odoo 12.0e\server\odoo\addons\calendar\models\calendar.py", line 1571, in write

    self.env['calendar.alarm_manager'].notify_next_alarm(partners_to_notify)

  File "c:\program files (x86)\odoo 12.0e\server\odoo\addons\calendar\models\calendar.py", line 467, in notify_next_alarm

    notif = self.sudo(user.id).get_next_notif()

  File "c:\program files (x86)\odoo 12.0e\server\odoo\addons\calendar\models\calendar.py", line 413, in get_next_notif

    max_delta = all_meetings[meeting.id]['max_duration']

KeyError: '23-21171117000000'


This error occurs when I click "Sync with Google" in the calendar app within Odoo. In the technical details, I changed the sync time to 15 minutes and also ran a manual sync. Nothing happened.

0
Avatar
Descartar
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrar-se
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk Slovenščina Español (América Latina) Español Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now