summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorAdrian Torres <adt@odoo.com>2018-10-22 11:40:00 +0000
committerAdrian Torres <adt@odoo.com>2018-10-22 12:22:59 +0000
commit2693918903483f10e18583b2ba716c4a9667320a (patch)
tree5cc8e98af9276c296185bdc84eda923d66876b49 /addons/web/static/src/js/views/basic/basic_controller.js
parentddc531a35a5d5fecb17c760b214e97581a7e76bb (diff)
[FIX] xmlrpc: properly marshall date & datetime objects
Before this revision, trying to read a Date field using xmlrpc would result in a marshalling error. This is due to the fact that 960360afe478a8f7b9c456721b5591154952a37d changed the internal value of Date/Datetime fields to hold datetime.date/datetime objects. The xmlrpc layer is capable of converting datetimes to the XML datetime representation, but this is not possible for datetime.date objects. In order to solve this, the Marshaller class used by python's xmlrpc.client is overridden and monkey-patched, allowing to convert datetime.date / datetime.datetime objects into properly formatted strings. opw-1896364 closes odoo/odoo#28022
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions