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