Contributors mailing list archives
contributors@odoo-community.org
Browse archives
Re: datetime error when accessing parts of Odoo
by
Camptocamp France SAS, Iván Todorovich
Hi Nathan!
Check if the user has a timezone configured in his preferences.
I remember encountering something like this a while back
Le sam. 4 janv. 2020 à 16:02, Nathan Kennedy <nathan@wakennedys.us> a écrit :
Hello Contributors,I am running Odoo v10 and I have an odd error that has just started popping up and it only seems to appear in the Discuss, Sales, and Project Tasks:Traceback (most recent call last):File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 642, in _handle_exceptionreturn super(JsonRequest, self)._handle_exception(exception)File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 684, in dispatchresult = self._call_function(**self.params)File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 334, in _call_functionreturn checked_call(self.db, *args, **kwargs)File "/usr/lib/python2.7/dist-packages/odoo/service/model.py", line 101, in wrapperreturn f(dbname, *args, **kwargs)File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 327, in checked_callresult = self.endpoint(*a, **kw)File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 942, in __call__return self.method(*args, **kw)File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 507, in response_wrapresponse = f(*args, **kw)File "/usr/lib/python2.7/dist-packages/odoo/addons/calendar/controllers/main.py", line 65, in notifyreturn request.env['calendar.alarm_manager'].get_next_notif()File "/usr/lib/python2.7/dist-packages/odoo/addons/calendar/models/calendar.py", line 380, in get_next_notiffor one_date in meeting._get_recurrent_date_by_event():File "/usr/lib/python2.7/dist-packages/odoo/addons/calendar/models/calendar.py", line 570, in _get_recurrent_date_by_eventreturn [d.astimezone(pytz.UTC) if d.tzinfo else d for d in rset1]File "/usr/lib/python2.7/dist-packages/dateutil/rrule.py", line 1144, in _iterself._genitem(rlist, gen)File "/usr/lib/python2.7/dist-packages/dateutil/rrule.py", line 1082, in __init__self.dt = advance_iterator(gen)File "/usr/lib/python2.7/dist-packages/dateutil/rrule.py", line 652, in _iterif until and res > until:TypeError: can't compare offset-naive and offset-aware datetimesOther users on the system do not get this error at all. The only thing I can think of that I did recently was to remove a recurring event from my google calendar that is no longer relevant.Short of creating a new user I have not figured out a good solution and I was hoping someone here might be able to shine a light on what is causing the error.Thank you,--Nathan KennedyJack of all tradesMaster of noneJust don't call me Jack_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
Reference
-
datetime error when accessing parts of Odoo
bynathan-
Re: datetime error when accessing parts of Odoo
byCamptocamp France SAS, Iván Todorovich