diff options
| author | Denis Ledoux <dle@odoo.com> | 2016-02-24 18:21:19 +0100 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2016-02-24 18:26:08 +0100 |
| commit | 9f0120d73bbbc364d8ec04b0e3ad63c75086ba52 (patch) | |
| tree | a10954b678a1325ea95b4b5251db7694a5bc4088 /addons/web/static/src/js/framework/model.js | |
| parent | ce385829076e91ac31e452269e96e0c10741bd67 (diff) | |
[FIX] point_of_sale: Sales Details timezone
The Sales Details report wizard gives the possibility
to print the details of the POS orders between two dates.
The fields in the wizard are of type `date`,
while the orders dates are of type `datetime`.
`00:00:00` and `23:59:59` were naively added
to the `date_start` and `date_end` (respectively) to
handle the case.
But, this doesn't take care of the user time zone:
When a user choose between February 24th and February 25th,
it's within his time zone, and therefore, for the search,
where the datetime are in UTC, adding `00:00:00` isn't enough,
the dates have to be converted from the user time zone
to UTC.
opw-6698831
Diffstat (limited to 'addons/web/static/src/js/framework/model.js')
0 files changed, 0 insertions, 0 deletions
