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
...@@ -76,14 +76,6 @@ class AccountingTransaction(Delivery): ...@@ -76,14 +76,6 @@ class AccountingTransaction(Delivery):
"%s can only be deleted in draft or cancelled states." % self.getPortalType() "%s can only be deleted in draft or cancelled states." % self.getPortalType()
Delivery.manage_beforeDelete(self, item, container) 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)
# Compatibility # Compatibility
# It may be necessary to create an alias after removing the Transaction class # It may be necessary to create an alias after removing the Transaction class
# Products.ERP5Type.Document.Transaction = AccountingTransaction # 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