Use proper key to compare with get_sources arguments

The wrong key values was introduced in rev bfc90c50b591.

issue8744
review254491002
This commit is contained in:
Cédric Krier committed 2019-10-25 23:05:38 +02:00
1 parent 6cc160318c
commit 7e291e13e1
1 file changed
+1 -1
+1 -1
View File
@@ -567,7 +567,7 @@ class Translation(ModelSQL, ModelView):
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