Commit c43a749d authored by Sebastien Robin's avatar Sebastien Robin

it is forbidden to delete delivered transactions, so use this bad hack

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13437 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fe15de55
......@@ -276,7 +276,11 @@ class TestImmobilisationMixin(TestOrderMixin, ERP5TypeTestCase):
pl_id_list = [r for r in self.getPortal().purchase_packing_list_module.objectIds()]
self.getPortal().purchase_packing_list_module.manage_delObjects(pl_id_list)
item_id_list = [r for r in self.getAccountingModule().objectIds()]
transaction_id_list = []
for transaction in self.getAccountingModule().objectValues():
transaction_id_list.append(transaction.getId())
transaction.workflow_history = {}
self.getAccountingModule().manage_delObjects(item_id_list)
get_transaction().commit()
......
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