Commit d7a59ae2 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Additional comments

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10096 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b0bf3ff7
...@@ -68,7 +68,7 @@ class AccountingTransaction(Delivery): ...@@ -68,7 +68,7 @@ class AccountingTransaction(Delivery):
def manage_beforeDelete(self, item, container): def manage_beforeDelete(self, item, container):
""" """
Accounting transactions can only be deleted Accounting transactions can only be deleted
in draft or cancelled state in draft or cancelled state
""" """
if self.getSimulationState() not in ("draft", "cancelled") : if self.getSimulationState() not in ("draft", "cancelled") :
from OFS.ObjectManager import BeforeDeleteException from OFS.ObjectManager import BeforeDeleteException
...@@ -79,6 +79,7 @@ class AccountingTransaction(Delivery): ...@@ -79,6 +79,7 @@ class AccountingTransaction(Delivery):
def manage_afterClone(self, item): def manage_afterClone(self, item):
# Reset reference on paste # Reset reference on paste
# XXX This implementation is quite bad because it is not generic # 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: if self.getReference != None:
self.setReference(None) self.setReference(None)
AccountingTransaction.manage_afterClone(self, item) AccountingTransaction.manage_afterClone(self, item)
......
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