Reviewers: ,


Please review this at http://codereview.tryton.org/590005/

Affected files:
  M trytond/model/modelsql.py


Index: trytond/model/modelsql.py
===================================================================
--- a/trytond/model/modelsql.py
+++ b/trytond/model/modelsql.py
@@ -955,6 +955,7 @@
     def delete(cls, records):
         cursor = Transaction().cursor
         pool = Pool()
+        Translation = pool.get('ir.translation')
         ids = map(int, records)

         if not ids:
@@ -1113,6 +1114,8 @@
                             cls.raise_user_error(error)
                 raise

+        Translation.delete_ids(cls.__name__, 'model', ids)
+
         if cls._history:
             for obj_id in ids:
cursor.execute('INSERT INTO "' + cls._table + '__history" ' \


--
--
[email protected] mailing list



Reply via email to