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

[FW][FIX] base: duration widget for unsupported babel format #156415

Closed

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Mar 4, 2024

In case of exception of type KeyError during the formatting with Babel instead to raise a Traceback, we first retry with the en_US locale.

Babel fixes each week new bug of formatting like the one in the test, but we cannot bump our default babel version since it is not in the stable Ubuntu 22 so it is a best effort fix that will not hide all bugs but is better that nothing.

python-babel/babel#827

Description of the issue/feature this PR addresses:

Current behavior before PR:

Desired behavior after PR is merged:


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

Forward-Port-Of: #155978
Forward-Port-Of: #155909

In case of exception of type KeyError during the formatting with Babel
instead to raise a Traceback, we first retry with the en_US locale.

Babel fixes each week new bug of formatting like the one in the test,
but we cannot bump our default babel version since it is not in the
stable Ubuntu 22 so it is a best effort fix that will not hide all bugs
but is better that nothing.

python-babel/babel#827

X-original-commit: c781015
@robodoo
Copy link
Contributor

robodoo commented Mar 4, 2024

@fw-bot
Copy link
Contributor Author

fw-bot commented Mar 4, 2024

@JKE-be @mart-e this PR targets master and is the last of the forward-port chain.

To merge the full chain, use

@fw-bot r+

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Mar 4, 2024
@C3POdoo C3POdoo added the RD research & development, internal work label Mar 4, 2024
@mart-e
Copy link
Contributor

mart-e commented Mar 5, 2024

@fw-bot r+
because @d-fence doesn’t want to upgrade babel 😢 (not sure if we asked though)

robodoo pushed a commit that referenced this pull request Mar 5, 2024
In case of exception of type KeyError during the formatting with Babel
instead to raise a Traceback, we first retry with the en_US locale.

Babel fixes each week new bug of formatting like the one in the test,
but we cannot bump our default babel version since it is not in the
stable Ubuntu 22 so it is a best effort fix that will not hide all bugs
but is better that nothing.

python-babel/babel#827

closes #156415

X-original-commit: c781015
Signed-off-by: Jérémy Kersten <jke@odoo.com>
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
@robodoo robodoo closed this Mar 5, 2024
@robodoo robodoo added the 17.2 label Mar 5, 2024
thle-odoo pushed a commit to odoo-dev/odoo that referenced this pull request Mar 8, 2024
In case of exception of type KeyError during the formatting with Babel
instead to raise a Traceback, we first retry with the en_US locale.

Babel fixes each week new bug of formatting like the one in the test,
but we cannot bump our default babel version since it is not in the
stable Ubuntu 22 so it is a best effort fix that will not hide all bugs
but is better that nothing.

python-babel/babel#827

closes odoo#156415

X-original-commit: c781015
Signed-off-by: Jérémy Kersten <jke@odoo.com>
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
@fw-bot fw-bot deleted the master-17.0-duration-keyerror-jke-VZht-fw branch March 19, 2024 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
17.2 forwardport This PR was created by @fw-bot RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants