- Mailing Lists
- Contributors
- Re: datetime error when accessing parts of Odoo
Archives
- By thread 1419
-
By date
- August 2019 59
- September 2019 118
- October 2019 165
- November 2019 97
- December 2019 35
- January 2020 58
- February 2020 204
- March 2020 121
- April 2020 172
- May 2020 50
- June 2020 158
- July 2020 85
- August 2020 94
- September 2020 193
- October 2020 277
- November 2020 100
- December 2020 159
- January 2021 38
- February 2021 87
- March 2021 146
- April 2021 73
- May 2021 90
- June 2021 86
- July 2021 123
- August 2021 50
- September 2021 68
- October 2021 66
- November 2021 74
- December 2021 75
- January 2022 98
- February 2022 77
- March 2022 68
- April 2022 31
- May 2022 59
- June 2022 87
- July 2022 141
- August 2022 38
- September 2022 73
- October 2022 152
- November 2022 39
- December 2022 50
- January 2023 93
- February 2023 49
- March 2023 106
- April 2023 47
- May 2023 69
- June 2023 92
- July 2023 64
- August 2023 103
- September 2023 91
- October 2023 101
- November 2023 94
- December 2023 46
- January 2024 75
- February 2024 79
- March 2024 104
- April 2024 63
- May 2024 40
- June 2024 160
- July 2024 80
- August 2024 70
- September 2024 62
- October 2024 121
- November 2024 117
- December 2024 89
- January 2025 59
- February 2025 104
- March 2025 96
- April 2025 107
- May 2025 52
- June 2025 72
- July 2025 60
- August 2025 81
- September 2025 124
- October 2025 63
- November 2025 22
Contributors
Re: datetime error when accessing parts of Odoo
On Sat, 2020-01-04 at 23:06 +0000, Iván Todorovich wrote:
Check if the user has a timezone configured in his preferences.I remember encountering something like this a while back
Hello Ivan,
Thank you for the response but that is the first thing I checked in case it had gotten cleared somehow. Just for the heck of it I changed the timezone and changed it back but that had no effect.
Cheers,
--
Nathan Kennedy
Contracted Professional IT
(360) 637-1090
https://www.nkent.us/
by Nathan Kennedy - 12:51 - 5 Jan 2020
Reference
-
datetime error when accessing parts of Odoo
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
by nathan - 08:01 - 4 Jan 2020-
Re: datetime error when accessing parts of Odoo
On Sat, 2020-01-04 at 23:06 +0000, Iván Todorovich wrote:Check if the user has a timezone configured in his preferences.I remember encountering something like this a while backHello Ivan,Thank you for the response but that is the first thing I checked in case it had gotten cleared somehow. Just for the heck of it I changed the timezone and changed it back but that had no effect.Cheers,--
Nathan KennedyContracted Professional IT(360) 637-1090https://www.nkent.us/
by Nathan Kennedy - 12:51 - 5 Jan 2020 -
Re: datetime error when accessing parts of Odoo
Hi Nathan!Check if the user has a timezone configured in his preferences.I remember encountering something like this a while backLe 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
by Iván Todorovich - 12:06 - 5 Jan 2020
-