From 84bb34c0cd19fb021b0f1ae1bdf25f858c837074 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 18 Dec 2008 00:57:35 +0100 Subject: [PATCH] Fix typo for src -> source for issue680 --- trytond/ir/translation.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/trytond/ir/translation.py b/trytond/ir/translation.py index ad2174f6ed..60e98cfa4e 100644 --- a/trytond/ir/translation.py +++ b/trytond/ir/translation.py @@ -292,10 +292,9 @@ class Translation(OSV, Cacheable): cursor.execute('SELECT lang, type, name, src, value ' \ 'FROM ir_translation ' \ 'WHERE ' + clause, value) - for lang, ttype, name, src, value in cursor.fetchall(): + for lang, ttype, name, source, value in cursor.fetchall(): res[(name, ttype, lang, source)] = value - self.add(cursor, (lang, ttype, name, source), - res[(name, ttype, lang, source)]) + self.add(cursor, (lang, ttype, name, source), value) return res def delete(self, cursor, user, ids, context=None):