Skip to content
Snippets Groups Projects
Commit 6a1183f4 authored by Julien Mougenot's avatar Julien Mougenot
Browse files

[FIX] web: Separate datepicker inputs


This commit splits the input element of the DatePicker and
DateTimePicker components into 2 separate inputs: the first one which is
the one used for parsing and which will actually be displayed in the UI,
and the second (type="hidden") that will be used by TempusDominus.

This has been done in order to fix major communication issues between
Moment (used by TD) and Luxon (used in the rest of Odoo), which up until
now have been resolved with the help of an intermediate "static format",
which itself caused a whole bunch of other problems.

This solution should hopefully be more seemless and less error-prone.

Fixes the following reports:
* OPW-3278019
* OPW-3295290
* OPW-3316325 (partially)

Part-of: odoo/odoo#123245
Co-authored-by: default avatarJorge Pinna Puissant <jpp@odoo.com>
Co-authored-by: default avatarJulien Mougenot <jum@odoo.com>
parent 7ed3cd89
Branches
Tags
No related merge requests found
Showing
with 423 additions and 324 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment