Skip to content
Snippets Groups Projects
Commit 7e012340 authored by qsm-odoo's avatar qsm-odoo
Browse files

[FIX] web: prevent wrong date format if picker used too soon on frontend


If datetimepickers were used too soon after page loading, they would use
the wrong format and UI options as the code in charge of initializing
those options was not fully lazy loaded yet.

With this patch, we prevent the tempusdominus lib to consider pickers
that are in a body that is marked by the lazyloader during the lazy
loading of JS files. We could potentially not add the lib attribute
(data-toggle="datetimepicker") on those elements and let the business
code initializing the pickers add it but that would not have been a
stable fix and it may be better this way as this works generically.

opw-2944720

closes odoo/odoo#98529

Signed-off-by: default avatarRomain Derie (rde) <rde@odoo.com>
parent 4a076198
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment