novacode-nl / odoo-celery

Odoo & Celery integration
GNU Lesser General Public License v3.0
42 stars 44 forks source link

[13.0, 14.0] Scheduled task - UNKNOWN ERROR FROM call_task: Datetime field expects a naive datetime #33

Closed bobslee closed 3 years ago

bobslee commented 3 years ago

Error upon executing/creating a Scheduled Task.

ERROR [DB_NAME] odoo.addons.celery.models.celery_task: UNKNOWN ERROR FROM call_task: Datetime field expects a naive datetime: 2020-12-18 09:00:00.757320+00:00 
revskill10 commented 3 years ago

Any ETA for the fix ?

antonioburic commented 3 years ago

I will have a look/fix this one later this week.

bobslee commented 3 years ago

Thanks @antonioburic ! Just a heads up... you could use the celery_example module to test.

antonioburic commented 3 years ago

Thanks @bobslee - PR with a fix created, this should be it. Please check/merge when convenient. ^^

bobslee commented 3 years ago

Thanks for the PR @antonioburic !

I also looked to the "Celery Task Settings" UI. Maybe we should add some info on the form-view, regarding the hours (float) fields and the UTC datetime ?