From 81a3f5665154bc3c864d5910d50a44496b4fc295 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Mon, 13 Apr 2015 16:31:04 +0200 Subject: [PATCH] [FIX] stock,event,pos: fix "today" filter with regard to timezones The previous filters didn't take timezones into account, and returned stringified naive datetime values in local browser time. Those would then be interpreted by the server-side as UTC date, and depending on the current timezone offset vs UTC, yield partially incorrect results. By returning directly a datetime.datetime object instead of a stringified version (see previous commit 76881fb), we can get the expected result regarless of the timezone. Fixes #2972 Closes #6229 opw-621282 --- addons/event/event_view.xml | 2 +- addons/point_of_sale/point_of_sale_view.xml | 2 +- addons/stock/stock_view.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/event/event_view.xml b/addons/event/event_view.xml index 8efae21f676..03bbaa7e4f8 100644 --- a/addons/event/event_view.xml +++ b/addons/event/event_view.xml @@ -293,7 +293,7 @@ - + diff --git a/addons/point_of_sale/point_of_sale_view.xml b/addons/point_of_sale/point_of_sale_view.xml index 1c3a9e4df97..fda99f43f0a 100644 --- a/addons/point_of_sale/point_of_sale_view.xml +++ b/addons/point_of_sale/point_of_sale_view.xml @@ -986,7 +986,7 @@ - + diff --git a/addons/stock/stock_view.xml b/addons/stock/stock_view.xml index 74d9c76d016..528926e699f 100644 --- a/addons/stock/stock_view.xml +++ b/addons/stock/stock_view.xml @@ -1368,7 +1368,7 @@ - +