From c43a749d80ce2b76a6747a86019d34d361fea93b Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Thu, 15 Mar 2007 18:40:53 +0000 Subject: [PATCH] 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 --- product/ERP5/tests/testImmobilisation.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/product/ERP5/tests/testImmobilisation.py b/product/ERP5/tests/testImmobilisation.py index 2a1ce2f509..a58b118b4e 100644 --- a/product/ERP5/tests/testImmobilisation.py +++ b/product/ERP5/tests/testImmobilisation.py @@ -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() -- 2.30.9