diff --git a/product/ERP5/Document/AccountingTransaction.py b/product/ERP5/Document/AccountingTransaction.py index 1742baab170c7ce238dded26c97453fc8f6dd0b5..fbb3c3d7862816e4303f95fe6624fcdfd4f14a2a 100644 --- a/product/ERP5/Document/AccountingTransaction.py +++ b/product/ERP5/Document/AccountingTransaction.py @@ -74,16 +74,8 @@ class AccountingTransaction(Delivery): 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) - - def manage_afterClone(self, item): - # Reset reference on paste - # XXX This implementation is quite bad because it is not generic - # it is related to the general problem of "what should I reset after paste" - if self.getReference != None: - self.setReference(None) - AccountingTransaction.manage_afterClone(self, item) + Delivery.manage_beforeDelete(self, item, container) # Compatibility # It may be necessary to create an alias after removing the Transaction class -# Products.ERP5Type.Document.Transaction = AccountingTransaction \ No newline at end of file +# Products.ERP5Type.Document.Transaction = AccountingTransaction