Commit 486b5f4
[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.
closes odoo#218803
Signed-off-by: Xavier Morel (xmo) <[email protected]>1 parent ac0e3e4 commit 486b5f4
File tree
2 files changed
+11
-13
lines changed- addons/mail/models/discuss
- odoo
2 files changed
+11
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1284 | 1284 | | |
1285 | 1285 | | |
1286 | 1286 | | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
1287 | 1291 | | |
1288 | 1292 | | |
1289 | | - | |
1290 | | - | |
1291 | | - | |
1292 | | - | |
1293 | | - | |
1294 | | - | |
1295 | | - | |
| 1293 | + | |
1296 | 1294 | | |
1297 | 1295 | | |
1298 | 1296 | | |
| |||
1326 | 1324 | | |
1327 | 1325 | | |
1328 | 1326 | | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
1329 | 1331 | | |
1330 | 1332 | | |
1331 | | - | |
1332 | | - | |
1333 | | - | |
1334 | | - | |
1335 | | - | |
| 1333 | + | |
1336 | 1334 | | |
1337 | 1335 | | |
1338 | 1336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3112 | 3112 | | |
3113 | 3113 | | |
3114 | 3114 | | |
3115 | | - | |
| 3115 | + | |
3116 | 3116 | | |
3117 | 3117 | | |
3118 | 3118 | | |
| |||
0 commit comments