Delete only old translation from the same module for issue819

This commit is contained in:
Cédric Krier committed 2009-02-26 19:14:12 +01:00
1 parent 633bd1dc6a
commit 5c243c66e4
1 file changed
+3 -1
+3 -1
View File
@@ -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()