From 5c243c66e4859de0839c62594822dfd25a5020bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 26 Feb 2009 19:14:12 +0100 Subject: [PATCH] Delete only old translation from the same module for issue819 --- trytond/ir/translation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/trytond/ir/translation.py b/trytond/ir/translation.py index 8950eee486..403a2324a3 100644 --- a/trytond/ir/translation.py +++ b/trytond/ir/translation.py @@ -697,9 +697,11 @@ class ReportTranslationSet(Wizard): cursor.execute('DELETE FROM ir_translation ' \ 'WHERE name = %s ' \ 'AND type = %s ' \ + 'AND module = %s ' \ 'AND src NOT IN ' \ '(' + ','.join(['%s' for x in strings]) + ')', - (report.report_name, 'odt') + tuple(strings)) + (report.report_name, 'odt', report.module) + \ + tuple(strings)) return {} ReportTranslationSet()