details: https://code.tryton.org/tryton/commit/10c09d53af57
branch: 8.0
user: Nicolas Évrard <[email protected]>
date: Mon Jan 29 18:47:56 2024 +0100
description:
Skip translation refering to unknown XML ID or unactivated source
Closes #12969
(grafted from 563cb007e55c30ed03e3fb4eb74b623bfa8fd6e1)
diffstat:
trytond/trytond/ir/translation.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 97b508ca4ad9 -r 10c09d53af57 trytond/trytond/ir/translation.py
--- a/trytond/trytond/ir/translation.py Thu Jul 30 16:20:47 2026 +0200
+++ b/trytond/trytond/ir/translation.py Mon Jan 29 18:47:56 2024 +0100
@@ -954,13 +954,15 @@
if (model in fs_id2prop
and res_id in fs_id2prop[model]):
res_id, noupdate = fs_id2prop[model][res_id]
+ elif res_id:
+ continue
if res_id:
try:
res_id = int(res_id)
except ValueError:
- res_id = None
- if not res_id:
+ continue
+ else:
res_id = -1
translation.res_id = res_id