Skip to Content
Odoo Menu
  • Prisijungti
  • Išbandykite nemokamai
  • Programėlės
    Finansai
    • Apskaita
    • Pateikimas apmokėjimui
    • Sąnaudos
    • Skaičiuoklė (BI)
    • Dokumentai
    • Pasirašymas
    Pardavimai
    • CRM
    • Pardavimai
    • Kasų sistema - Parduotuvė
    • Kasų sistema - Restoranas
    • Prenumeratos
    • Nuoma
    Svetainės
    • Svetainių kūrėjimo įrankis
    • El. Prekyba
    • Internetinis Tinklaraštis
    • Forumas
    • Tiesioginis pokalbis
    • eMokymasis
    Tiekimo grandinė
    • Atsarga
    • Gamyba
    • PLM
    • Įsigijimai
    • Priežiūra
    • Kokybė
    Žmogaus ištekliai
    • Darbuotojai
    • Įdarbinimas
    • Atostogos
    • Įvertinimai
    • Rekomendacijos
    • Transporto priemonės
    Rinkodara
    • Socialinė rinkodara
    • Rinkodara el. paštu
    • SMS rinkodara
    • Renginiai
    • Rinkodaros automatizavimas
    • Apklausos
    Paslaugos
    • Projektas
    • Darbo laiko žiniaraščiai
    • Priežiūros tarnyba
    • Pagalbos tarnyba
    • Planavimas
    • Rezervacijos
    Produktyvumas
    • Diskucija
    • Patvirtinimai
    • IoT
    • VoIP
    • Žinių biblioteka
    • WhatsApp
    Trečiųjų šalių programos Odoo Studija Odoo debesijos platforma
  • Pramonės šakos
    Mažmeninė prekyba
    • Knygynas
    • Drabužių parduotuvė
    • Baldų parduotuvė
    • Maisto prekių parduotuvė
    • Techninės įrangos parduotuvė
    • Žaislų parduotuvė
    Food & Hospitality
    • Barai ir pub'ai
    • Restoranas
    • Greitasis maistas
    • Guest House
    • Gėrimų platintojas
    • Hotel
    Nekilnojamasis turtas
    • Real Estate Agency
    • Architektūros įmonė
    • Konstrukcija
    • Estate Managament
    • Sodininkauti
    • Turto savininkų asociacija
    Konsultavimas
    • Accounting Firm
    • Odoo Partneris
    • Marketing Agency
    • Teisinė firma
    • Talentų paieška
    • Auditai & sertifikavimas
    Gamyba
    • Textile
    • Metal
    • Furnitures
    • Maistas
    • Brewery
    • Įmonių dovanos
    Sveikata & Fitnesas
    • Sporto klubas
    • Akinių parduotuvė
    • Fitneso Centras
    • Sveikatos praktikai
    • Vaistinė
    • Kirpėjas
    Trades
    • Handyman
    • IT įranga ir palaikymas
    • Saulės energijos sistemos
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Kiti
    • Nonprofit Organization
    • Aplinkos agentūra
    • Reklaminių stendų nuoma
    • Fotografavimas
    • Dviračių nuoma
    • Programinės įrangos perpardavėjas
    Browse all Industries
  • Bendrija
    Mokykitės
    • Mokomosios medžiagos
    • Dokumentacija
    • Sertifikatai
    • Mokymai
    • Internetinis Tinklaraštis
    • Tinklalaidės
    Skatinkite švietinimą
    • Švietimo programa
    • Scale Up! Verslo žaidimas
    • Aplankykite Odoo
    Gaukite programinę įrangą
    • Atsisiųsti
    • Palyginkite versijas
    • Leidimai
    Bendradarbiauti
    • Github
    • Forumas
    • Renginiai
    • Vertimai
    • Tapkite partneriu
    • Services for Partners
    • Registruokite jūsų apskaitos įmonę
    Gaukite paslaugas
    • Susiraskite partnerį
    • Susirask buhalterį
    • Susitikti su konsultantu
    • Diegimo paslaugos
    • Klientų rekomendavimas
    • Palaikymas
    • Atnaujinimai
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Gaukite demo
  • Kainodara
  • Pagalba

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Apskaita
  • Atsarga
  • PoS
  • Projektas
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
Pagalba

How to fix ValueError year is out of range at Odoo 10 calendar?

Prenumeruoti

Get notified when there's activity on this post

This question has been flagged
google_calendar
3 Replies
6099 Rodiniai
Portretas
Ayman Gabr

sync google calendar with Odoo got this message when accessing the calendar or sales or the main setting 


Calendar page Error message


Traceback (most recent call last):
  File "/odoo10/odoo10-server/odoo/http.py", line 642, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/odoo10/odoo10-server/odoo/http.py", line 684, in dispatch
    result = self._call_function(**self.params)
  File "/odoo10/odoo10-server/odoo/http.py", line 334, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/odoo10/odoo10-server/odoo/service/model.py", line 101, in wrapper
    return f(dbname, *args, **kwargs)
  File "/odoo10/odoo10-server/odoo/http.py", line 327, in checked_call
    result = self.endpoint(*a, **kw)
  File "/odoo10/odoo10-server/odoo/http.py", line 942, in __call__
    return self.method(*args, **kw)
  File "/odoo10/odoo10-server/odoo/http.py", line 507, in response_wrap
    response = f(*args, **kw)
  File "/odoo10/odoo10-server/addons/web/controllers/main.py", line 837, in search_read
    return self.do_search_read(model, fields, offset, limit, domain, sort)
  File "/odoo10/odoo10-server/addons/web/controllers/main.py", line 859, in do_search_read
    offset=offset or 0, limit=limit or False, order=sort or False)
  File "/odoo10/odoo10-server/odoo/models.py", line 4737, in search_read
    records = self.search(domain or [], offset=offset, limit=limit, order=order)
  File "/odoo10/odoo10-server/addons/calendar/models/calendar.py", line 1601, in search
    events = self.browse(events.get_recurrent_ids(args, order=order))
  File "/odoo10/odoo10-server/addons/calendar/models/calendar.py", line 1032, in get_recurrent_ids
    rdates = meeting._get_recurrent_dates_by_event()
  File "/odoo10/odoo10-server/addons/calendar/models/calendar.py", line 528, in _get_recurrent_dates_by_event
    start_dates = self._get_recurrent_date_by_event(date_field='start')
  File "/odoo10/odoo10-server/addons/calendar/models/calendar.py", line 570, in _get_recurrent_date_by_event
    return [d.astimezone(pytz.UTC) if d.tzinfo else d for d in rset1]
  File "/usr/lib/python2.7/dist-packages/dateutil/rrule.py", line 1164, in _iter
    advance_iterator(ritem)
  File "/usr/lib/python2.7/dist-packages/dateutil/rrule.py", line 1091, in __next__
    self.dt = advance_iterator(self.gen)
  File "/usr/lib/python2.7/dist-packages/dateutil/rrule.py", line 649, in _iter
    date = datetime.date.fromordinal(ii.yearordinal+i)
ValueError: year is out of range



Sales page error message (NB: the page not loaded)


Traceback (most recent call last):
  File "/odoo10/odoo10-server/odoo/http.py", line 642, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/odoo10/odoo10-server/odoo/http.py", line 684, in dispatch
    result = self._call_function(**self.params)
  File "/odoo10/odoo10-server/odoo/http.py", line 334, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/odoo10/odoo10-server/odoo/service/model.py", line 101, in wrapper
    return f(dbname, *args, **kwargs)
  File "/odoo10/odoo10-server/odoo/http.py", line 327, in checked_call
    result = self.endpoint(*a, **kw)
  File "/odoo10/odoo10-server/odoo/http.py", line 942, in __call__
    return self.method(*args, **kw)
  File "/odoo10/odoo10-server/odoo/http.py", line 507, in response_wrap
    response = f(*args, **kw)
  File "/odoo10/odoo10-server/addons/web/controllers/main.py", line 895, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/odoo10/odoo10-server/addons/web/controllers/main.py", line 887, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/odoo10/odoo10-server/odoo/api.py", line 687, in call_kw
    return call_kw_model(method, model, args, kwargs)
  File "/odoo10/odoo10-server/odoo/api.py", line 672, in call_kw_model
    result = method(recs, *args, **kwargs)
  File "/odoo10/odoo10-server/addons/sale_crm/models/crm_lead.py", line 32, in retrieve_sales_dashboard
    res = super(CrmLead, self).retrieve_sales_dashboard()
  File "/odoo10/odoo10-server/addons/crm/models/crm_lead.py", line 1003, in retrieve_sales_dashboard
    meetings = self.env['calendar.event'].search(meetings_domain)
  File "/odoo10/odoo10-server/addons/calendar/models/calendar.py", line 1601, in search
    events = self.browse(events.get_recurrent_ids(args, order=order))
  File "/odoo10/odoo10-server/addons/calendar/models/calendar.py", line 1032, in get_recurrent_ids
    rdates = meeting._get_recurrent_dates_by_event()
  File "/odoo10/odoo10-server/addons/calendar/models/calendar.py", line 528, in _get_recurrent_dates_by_event
    start_dates = self._get_recurrent_date_by_event(date_field='start')
  File "/odoo10/odoo10-server/addons/calendar/models/calendar.py", line 570, in _get_recurrent_date_by_event
    return [d.astimezone(pytz.UTC) if d.tzinfo else d for d in rset1]
  File "/usr/lib/python2.7/dist-packages/dateutil/rrule.py", line 1164, in _iter
    advance_iterator(ritem)
  File "/usr/lib/python2.7/dist-packages/dateutil/rrule.py", line 1091, in __next__
    self.dt = advance_iterator(self.gen)
  File "/usr/lib/python2.7/dist-packages/dateutil/rrule.py", line 649, in _iter
    date = datetime.date.fromordinal(ii.yearordinal+i)
ValueError: year is out of range


even we tried to re sync the calendar, but it's same


 

0
Portretas
Atmesti
MUHAMMAD Imran

May I see Your Code so that I can help you in better way. Please

Ayman Gabr
Autorius

it's the default app, we didn't developed any custom app

btw the issue displayed to the user if he displaying the February month and after, but if he view the months before February , it's working fine

here is also the message if the user trying to sync the google calendar

Traceback (most recent call last):

File "/odoo10/odoo10-server/odoo/http.py", line 642, in _handle_exception

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

File "/odoo10/odoo10-server/odoo/http.py", line 684, in dispatch

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

File "/odoo10/odoo10-server/odoo/http.py", line 334, in _call_function

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

File "/odoo10/odoo10-server/odoo/service/model.py", line 101, in wrapper

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

File "/odoo10/odoo10-server/odoo/http.py", line 327, in checked_call

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

File "/odoo10/odoo10-server/odoo/http.py", line 942, in __call__

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

File "/odoo10/odoo10-server/odoo/http.py", line 507, in response_wrap

response = f(*args, **kw)

File "/odoo10/odoo10-server/addons/google_calendar/controllers/main.py", line 43, in sync_data

return GoogleCal.with_context(context).synchronize_events()

File "/odoo10/odoo10-server/addons/google_calendar/models/google_calendar.py", line 590, in synchronize_events

new_ids += recs.create_new_events()

File "/odoo10/odoo10-server/addons/google_calendar/models/google_calendar.py", line 627, in create_new_events

att.event_id.write({'oe_update_date': update_date})

File "/odoo10/odoo10-server/addons/google_calendar/models/calendar.py", line 25, in write

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

File "/odoo10/odoo10-server/addons/calendar/models/calendar.py", line 1431, in write

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

File "/odoo10/odoo10-server/addons/calendar/models/calendar.py", line 430, in notify_next_alarm

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

File "/odoo10/odoo10-server/addons/calendar/models/calendar.py", line 380, in get_next_notif

for one_date in meeting._get_recurrent_date_by_event():

File "/odoo10/odoo10-server/addons/calendar/models/calendar.py", line 570, in _get_recurrent_date_by_event

return [d.astimezone(pytz.UTC) if d.tzinfo else d for d in rset1]

File "/usr/lib/python2.7/dist-packages/dateutil/rrule.py", line 1164, in _iter

advance_iterator(ritem)

File "/usr/lib/python2.7/dist-packages/dateutil/rrule.py", line 1091, in __next__

self.dt = advance_iterator(self.gen)

File "/usr/lib/python2.7/dist-packages/dateutil/rrule.py", line 649, in _iter

date = datetime.date.fromordinal(ii.yearordinal+i)

ValueError: year is out of range

Appreciate your Supporting

Portretas
Ayman Gabr
Autorius Best Answer

it's the default app, we didn't developed any custom app

btw the issue displayed to the user if he displaying the February month and after, but if he view the months before February , it's working fine

here is also the message if the user trying to sync the google calendar

Traceback (most recent call last):
  File "/odoo10/odoo10-server/odoo/http.py", line 642, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/odoo10/odoo10-server/odoo/http.py", line 684, in dispatch
    result = self._call_function(**self.params)
  File "/odoo10/odoo10-server/odoo/http.py", line 334, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/odoo10/odoo10-server/odoo/service/model.py", line 101, in wrapper
    return f(dbname, *args, **kwargs)
  File "/odoo10/odoo10-server/odoo/http.py", line 327, in checked_call
    result = self.endpoint(*a, **kw)
  File "/odoo10/odoo10-server/odoo/http.py", line 942, in __call__
    return self.method(*args, **kw)
  File "/odoo10/odoo10-server/odoo/http.py", line 507, in response_wrap
    response = f(*args, **kw)
  File "/odoo10/odoo10-server/addons/google_calendar/controllers/main.py", line 43, in sync_data
    return GoogleCal.with_context(context).synchronize_events()
  File "/odoo10/odoo10-server/addons/google_calendar/models/google_calendar.py", line 590, in synchronize_events
    new_ids += recs.create_new_events()
  File "/odoo10/odoo10-server/addons/google_calendar/models/google_calendar.py", line 627, in create_new_events
    att.event_id.write({'oe_update_date': update_date})
  File "/odoo10/odoo10-server/addons/google_calendar/models/calendar.py", line 25, in write
    return super(Meeting, self).write(values)
  File "/odoo10/odoo10-server/addons/calendar/models/calendar.py", line 1431, in write
    self.env['calendar.alarm_manager'].notify_next_alarm(partners_to_notify)
  File "/odoo10/odoo10-server/addons/calendar/models/calendar.py", line 430, in notify_next_alarm
    notif = self.sudo(user.id).get_next_notif()
  File "/odoo10/odoo10-server/addons/calendar/models/calendar.py", line 380, in get_next_notif
    for one_date in meeting._get_recurrent_date_by_event():
  File "/odoo10/odoo10-server/addons/calendar/models/calendar.py", line 570, in _get_recurrent_date_by_event
    return [d.astimezone(pytz.UTC) if d.tzinfo else d for d in rset1]
  File "/usr/lib/python2.7/dist-packages/dateutil/rrule.py", line 1164, in _iter
    advance_iterator(ritem)
  File "/usr/lib/python2.7/dist-packages/dateutil/rrule.py", line 1091, in __next__
    self.dt = advance_iterator(self.gen)
  File "/usr/lib/python2.7/dist-packages/dateutil/rrule.py", line 649, in _iter
    date = datetime.date.fromordinal(ii.yearordinal+i)
ValueError: year is out of range


Appreciate your Supporting

0
Portretas
Atmesti
Enjoying the discussion? Don't just read, join in!

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

Registracija
Related Posts Replies Rodiniai Veikla
google calendar redirect uri
google_calendar
Portretas
Portretas
1
birž. 25
1093
Google Calendar Sync - Not syncing Location/Meeting URL
google_calendar
Portretas
0
rugp. 24
2242
Odoo calendar does not sync to Google calendar but does it vice versa
google_calendar
Portretas
Portretas
Portretas
2
bal. 24
4901
[Odoo 15]Location visible in Google Agenda item
google_calendar
Portretas
0
birž. 22
2230
Sync Google Shared Calendar Only
google_calendar
Portretas
0
bal. 20
3738
Bendrija
  • Mokomosios medžiagos
  • Dokumentacija
  • Forumas
Atvirasis kodas
  • Atsisiųsti
  • Github
  • Runbot
  • Vertimai
Paslaugos
  • Odoo.sh talpinimas
  • Palaikymas
  • Atnaujinti
  • Pritaikytas programavimo kūrimas
  • Švietimas
  • Susirask buhalterį
  • Susiraskite partnerį
  • Tapkite partneriu
Apie mus
  • Mūsų įmonė
  • Prekės ženklo turtas
  • Susisiekite su mumis
  • Darbo pasiūlymai
  • Renginiai
  • Tinklalaidės
  • Internetinis Tinklaraštis
  • Klientai
  • Teisinis • Privatumas
  • Saugumas
الْعَرَبيّة 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 ภาษาไทย Türkçe українська Tiếng Việt

Odoo yra atvirojo kodo verslo programų rinkinys, kuris apima visas įmonės poreikius: CRM, El. Prekybą, Apskaitą, Atsargų, Kasų sistemą, Projektų valdymą ir kt.

Unikali Odoo vertės pasiūla – būti tuo pačiu metu labai lengvai naudojama ir visiškai integruota sistema.

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