odoo/addons/web
Nicolas Lempereur 76881fb226 [FIX] web: backport datetime.toJSON() so we can return local datetimes in search domains
This fix adds the toJSON() method to datetime.datetime,
so domain expressions can use datetime values directly,
without having to compute the stringified version
with convoluted strftime() and timezone calculations.

The datetime results are sent down to the JSON-RPC
level where the JSON.stringify() serialization will
convert them to UTC string, to be deserialized
properly as UTC datetime values on the server side.

Thanks to this we can use the browser's local midnight
timestamp in a filter expression, for example like this:

`datetime.datetime.combine(context_today(), datetime.time(0,0,0))`

and get the expected result regardless of the user/browser's
timezone.

related to issue #2972 and pull request #2914 and #6229

(Next commit will fix them)

opw-621282
2015-04-23 14:05:56 +02:00
..
cli [FIX] test_js typo 2012-12-09 05:30:15 +01:00
controllers [FIX] export: decode Field strings before comparisons 2015-03-06 13:12:50 +01:00
doc [IMP] PNG recompression 2013-06-05 14:43:27 +02:00
i18n [I18N] Sync updated 7.0 translations from Launchpad 2015-01-07 17:57:28 +01:00
static [FIX] web: backport datetime.toJSON() so we can return local datetimes in search domains 2015-04-23 14:05:56 +02:00
tests [FIX] test: correct Mock of search_read 2014-01-23 18:08:36 +01:00
__init__.py minor fixes 2012-12-19 03:49:46 +01:00
__openerp__.py [FIX] correctly handle group_by_no_leaf when no grouping applied 2013-04-16 11:23:44 +02:00
http.py [FIX]Refixed the issue of oe_sessions_effectiveusername storage in temp, used geteuid which returns effective user id. 2013-05-30 14:38:14 +05:30
session.py [IMP] clean permissions and shebang in files 2013-05-14 12:37:36 +02:00