Commit b96bec17 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Show a portal type in the message rather than the class name.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5856 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a9e94021
...@@ -71,8 +71,8 @@ class AccountingTransaction(Delivery): ...@@ -71,8 +71,8 @@ class AccountingTransaction(Delivery):
in draft or cancelled state in draft or cancelled state
""" """
if self.getSimulationState() not in ("draft", "cancelled") : if self.getSimulationState() not in ("draft", "cancelled") :
from OFS.ObjectManager import BeforeDeleteException from OFS.ObjectManager import BeforeDeleteException
raise BeforeDeleteException, "Accounting Transaction can only be "\ raise BeforeDeleteException, \
"deleted in draft or cancelled states." "%s can only be deleted in draft or cancelled states." % self.getPortalType()
Delivery.manage_beforeDelete(self, item, container) Delivery.manage_beforeDelete(self, item, container)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment