changeset 3723276aa94f in trytond:default
details: https://hg.tryton.org/trytond?cmd=changeset;node=3723276aa94f
description:
        Use proper key to compare with get_sources arguments

        The wrong key values was introduced in rev bfc90c50b591.

        issue8744
        review254491002
diffstat:

 trytond/ir/translation.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r dc3a2f95414f -r 3723276aa94f trytond/ir/translation.py
--- a/trytond/ir/translation.py Tue Oct 22 10:07:59 2019 +0200
+++ b/trytond/ir/translation.py Fri Oct 25 23:05:38 2019 +0200
@@ -567,7 +567,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

Reply via email to