diff --git a/product/ERP5/Document/AccountingTransaction.py b/product/ERP5/Document/AccountingTransaction.py
index 1fafa245c4d69209702f6b8fe5338f4517a397e7..33e984a87e636179762be364dfe1020ecd0b7bf4 100755
--- a/product/ERP5/Document/AccountingTransaction.py
+++ b/product/ERP5/Document/AccountingTransaction.py
@@ -71,8 +71,8 @@ class AccountingTransaction(Delivery):
       in draft or cancelled state
       """
       if self.getSimulationState() not in ("draft", "cancelled") :
-          from OFS.ObjectManager import BeforeDeleteException
-          raise BeforeDeleteException, "Accounting Transaction can only be "\
-                                   "deleted in draft or cancelled states."
+        from OFS.ObjectManager import BeforeDeleteException
+        raise BeforeDeleteException, \
+              "%s can only be deleted in draft or cancelled states." % self.getPortalType()
       Delivery.manage_beforeDelete(self, item, container)