From ba42bc2f89bf413596165a5d7a4e7023ba5b666d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 17 Sep 2013 17:38:45 +0200 Subject: [PATCH] Fix typo in Translation --- trytond/ir/translation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trytond/ir/translation.py b/trytond/ir/translation.py index dbd00c7e0b..f405d902b0 100644 --- a/trytond/ir/translation.py +++ b/trytond/ir/translation.py @@ -985,9 +985,9 @@ class TranslationSet(Wizard): return cursor = Transaction().cursor - translation = Transaction.__table__() + translation = Translation.__table__() for report in reports: - cursor.extend(*translation.select( + cursor.execute(*translation.select( translation.id, translation.name, translation.src, where=(translation.lang == 'en_US') & (translation.type == 'odt') @@ -1095,7 +1095,7 @@ class TranslationSet(Wizard): if not views: return cursor = Transaction().cursor - translation = Translation.__table__ + translation = Translation.__table__() for view in views: cursor.execute(*translation.select( translation.id, translation.name, translation.src,