changeset 703ca189d11e in trytond:5.2
details: https://hg.tryton.org/trytond?cmd=changeset;node=703ca189d11e
description:
Use proper key to compare with get_sources arguments
The wrong key values was introduced in rev bfc90c50b591.
issue8744
review254491002
(grafted from 3723276aa94f14d20f43f39a4e767d98e282512e)
diffstat:
trytond/ir/translation.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 78875434b37e -r 703ca189d11e trytond/ir/translation.py
--- a/trytond/ir/translation.py Wed Oct 16 21:31:25 2019 +0200
+++ b/trytond/ir/translation.py Fri Oct 25 23:05:38 2019 +0200
@@ -564,7 +564,7 @@
for sub_clause in grouped_slice(clauses, in_max):
for translation in cls.search(['OR'] + list(sub_clause)):
key = (translation.name, translation.type,
- translation.name, translation.name, translation.src)
+ translation.lang, translation.src)
if key not in args:
key = key[:-1] + (None,)
res[key] = translation.value