Delete only old translation from the same module for issue819
This commit is contained in:
1 parent
633bd1dc6a
commit
5c243c66e4
1 file changed
+3
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user