Commit 3aad2dd6 authored by Jérome Perrin's avatar Jérome Perrin

remove manage_afterClone, it's handled by type based scripts.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10117 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e50f062a
......@@ -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
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