-
Notifications
You must be signed in to change notification settings - Fork 23.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IMP] Use locale week-start in datepicker #36532
[IMP] Use locale week-start in datepicker #36532
Conversation
2f7f0cc
to
5bc472b
Compare
5bc472b
to
76dea04
Compare
c080bdc
to
7bd1e59
Compare
7bd1e59
to
9bed48d
Compare
9bed48d
to
c5a14c0
Compare
@andriisem @naglis @KAMLESHAHIR @xabispacebiker I believe this PR would be of interest for you. @Yenthe666 this one is related to #30709 as well |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really helpful
@mart-e @RomainLibert where should this go? |
@alexey-pelykh This should probably be reviewed by the js framework |
Before this rev., if the week_start param (the first day of week) of the user language was changed, it wasn't reflected on datepickers (however, it worked fine in the calendar view). This rev. makes this work by updating the moment locale with the corresponding param. Fixes odoo#36450 Closes odoo#36532
Before this rev., if the week_start param (the first day of week) of the user language was changed, it wasn't reflected on datepickers (however, it worked fine in the calendar view). This rev. makes this work by updating the moment locale with the corresponding param. Fixes #36450 Closes #36532 closes #38344 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Before this rev., if the week_start param (the first day of week) of the user language was changed, it wasn't reflected on datepickers (however, it worked fine in the calendar view). This rev. makes this work by updating the moment locale with the corresponding param. Fixes odoo#36450 Closes odoo#36532
Before this rev., if the week_start param (the first day of week) of the user language was changed, it wasn't reflected on datepickers (however, it worked fine in the calendar view). This rev. makes this work by updating the moment locale with the corresponding param. Fixes odoo#36450 Closes odoo#36532 X-original-commit: eeb5183
Before this rev., if the week_start param (the first day of week) of the user language was changed, it wasn't reflected on datepickers (however, it worked fine in the calendar view). This rev. makes this work by updating the moment locale with the corresponding param. Fixes #36450 Closes #36532 closes #38472 X-original-commit: eeb5183 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Before this rev., if the week_start param (the first day of week) of the user language was changed, it wasn't reflected on datepickers (however, it worked fine in the calendar view). This rev. makes this work by updating the moment locale with the corresponding param. Fixes #36450 Closes #36532 closes #38472 X-original-commit: eeb5183 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Before this rev., if the week_start param (the first day of week) of the user language was changed, it wasn't reflected on datepickers (however, it worked fine in the calendar view). This rev. makes this work by updating the moment locale with the corresponding param. Fixes #36450 Closes #36532 closes #38472 X-original-commit: eeb5183 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Description of the issue/feature this PR addresses: #36450
Current behavior before PR:
Change of locale's week-start does not affect datepicker.
Desired behavior after PR is merged:
Change of locale's week-start affects datepicker.
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr