[Erp5-report] r10117 - /erp5/trunk/products/ERP5/Document/AccountingTransaction.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Sep 18 18:01:42 CEST 2006
Author: jerome
Date: Mon Sep 18 18:01:40 2006
New Revision: 10117
URL: http://svn.erp5.org?rev=10117&view=rev
Log:
remove manage_afterClone, it's handled by type based scripts.
Modified:
erp5/trunk/products/ERP5/Document/AccountingTransaction.py
Modified: erp5/trunk/products/ERP5/Document/AccountingTransaction.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/AccountingTransaction.py?rev=10117&r1=10116&r2=10117&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/AccountingTransaction.py (original)
+++ erp5/trunk/products/ERP5/Document/AccountingTransaction.py Mon Sep 18 18:01:40 2006
@@ -74,16 +74,8 @@
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
+# Products.ERP5Type.Document.Transaction = AccountingTransaction
More information about the Erp5-report
mailing list