diff options
| author | celm1990 <celm1990@hotmail.com> | 2018-01-30 15:49:22 -0500 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2018-04-12 01:17:47 +0200 |
| commit | 2157540768112107a3c68ed28ce429572e28fce5 (patch) | |
| tree | f958fb3123cf554c7a4d32e0bfd98aaeb34b4288 /addons/web/static/tests/fields/basic_fields_tests.js | |
| parent | fe7b9ab709f503bf3bec1bed680ab2d738077d29 (diff) | |
[FIX] point_of_sale: set the payment date based on TZ
If a user is in an early timezone (e.g. UTC-5), an order made on the
...-01 19:15:00 or, converted to UTC, as ...-02 00:15:00
fields.Date.today() returns the days ...-02 instead of ...-01
Use context_today to convert in the right timezone.
This slightly change the return format of _payment_fields to return a date
instead of a datetime.
Followup of 7272abe0e3c0 that was adding the timezone in the context
Closes #22651
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions
