Skip to content
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

Closed

Conversation

alexey-pelykh
Copy link
Contributor

@alexey-pelykh alexey-pelykh commented Sep 8, 2019

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.

image
image

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

@robodoo robodoo added the CI 🤖 Robodoo has seen passing statuses label Sep 8, 2019
@robodoo robodoo removed the CI 🤖 Robodoo has seen passing statuses label Sep 8, 2019
@alexey-pelykh alexey-pelykh force-pushed the use-week_start-in-datepicker branch 2 times, most recently from c080bdc to 7bd1e59 Compare September 8, 2019 08:38
@robodoo robodoo added the CI 🤖 Robodoo has seen passing statuses label Sep 8, 2019
@robodoo robodoo removed the CI 🤖 Robodoo has seen passing statuses label Sep 10, 2019
@robodoo robodoo added the CI 🤖 Robodoo has seen passing statuses label Sep 10, 2019
@alexey-pelykh
Copy link
Contributor Author

@andriisem @naglis @KAMLESHAHIR @xabispacebiker I believe this PR would be of interest for you. @Yenthe666 this one is related to #30709 as well

Copy link

@yak4995 yak4995 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really helpful

@alexey-pelykh
Copy link
Contributor Author

@mart-e @RomainLibert where should this go?

@RomainLibert
Copy link
Contributor

@alexey-pelykh This should probably be reviewed by the js framework
cc @aab-odoo @VincentSchippefilt

aab-odoo pushed a commit to odoo-dev/odoo that referenced this pull request Oct 10, 2019
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
robodoo pushed a commit that referenced this pull request Oct 10, 2019
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>
aab-odoo pushed a commit to odoo-dev/odoo that referenced this pull request Oct 11, 2019
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
@robodoo robodoo closed this in eeb5183 Oct 11, 2019
@robodoo robodoo added closed 💔 and removed CI 🤖 Robodoo has seen passing statuses labels Oct 11, 2019
fw-bot added a commit to odoo-dev/odoo that referenced this pull request Oct 11, 2019
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
robodoo pushed a commit that referenced this pull request Oct 11, 2019
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>
robodoo pushed a commit that referenced this pull request Oct 11, 2019
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>
robodoo pushed a commit that referenced this pull request Oct 11, 2019
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>
@alexey-pelykh alexey-pelykh deleted the use-week_start-in-datepicker branch March 12, 2020 11:10
Tonow-c2c added a commit to Tonow-c2c/server-ux that referenced this pull request May 19, 2020
Tonow-c2c added a commit to Tonow-c2c/server-ux that referenced this pull request May 19, 2020
Tonow-c2c added a commit to Tonow-c2c/server-ux that referenced this pull request May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants