details: https://code.tryton.org/tryton/commit/37582c35e492
branch: 7.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 667b0be45487 -r 37582c35e492 trytond/trytond/ir/translation.py
--- a/trytond/trytond/ir/translation.py Thu Aug 06 16:15:44 2026 +0200
+++ b/trytond/trytond/ir/translation.py Mon Jan 29 18:47:56 2024 +0100
@@ -856,13 +856,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