Commit ae015d9
committed
[FIX] *: f-strings inside _() calls
On Jammy, babel does *not* cope well with f-strings as values inside
`_()` calls: it uses `eval` to try and figure them out, which attempts
to execute the f-string, which fails because the evaluation context is
empty.
This is likely fixed from Babel 2.11 onwards (python-babel/babel#915)
but Jammy uses babel 2.8[^1].
https://runbot.odoo.com/odoo/runbot.build.error/97849
[^1]: This doesn't seem to trigger on Noble even though it uses 2.10,
but locally it does trigger on 2.10.3 (installed via pip), so
ubuntu might have backported the fix or something.
X-original-commit: 51c169a1 parent 2afbe61 commit ae015d9
File tree
2 files changed
+11
-13
lines changed- addons/mail/models/discuss
- odoo/orm
2 files changed
+11
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1419 | 1419 | | |
1420 | 1420 | | |
1421 | 1421 | | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
1422 | 1426 | | |
1423 | 1427 | | |
1424 | | - | |
1425 | | - | |
1426 | | - | |
1427 | | - | |
1428 | | - | |
1429 | | - | |
1430 | | - | |
| 1428 | + | |
1431 | 1429 | | |
1432 | 1430 | | |
1433 | 1431 | | |
| |||
1462 | 1460 | | |
1463 | 1461 | | |
1464 | 1462 | | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
1465 | 1467 | | |
1466 | 1468 | | |
1467 | | - | |
1468 | | - | |
1469 | | - | |
1470 | | - | |
1471 | | - | |
| 1469 | + | |
1472 | 1470 | | |
1473 | 1471 | | |
1474 | 1472 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
0 commit comments