Guewen Baconnier
|
35fb727d6c
|
Encode/decode date and datetime in redis sessions
In several places, odoo sets a datetime object directly in the
session. It works with the default session handler of odoo which
uses pickle.
But datetime and date are not json serializable by default.
Add custom encoder / decoder to handle them (from
https://github.com/OCA/queue/blob/dc12a6a20ecfd15c5b90f9b089c9a64cf9d8bbe4/queue_job/fields.py#L57-L99)
See the discussion raised by @PCatinean on https://github.com/camptocamp/odoo-cloud-platform/pull/176
|
2020-05-04 16:09:55 +02:00 |
|