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
......@@ -72,7 +72,7 @@ class AccountingTransaction(Delivery):
"""
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."
raise BeforeDeleteException, \
"%s can only be deleted in draft or cancelled states." % self.getPortalType()
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