diff --git a/bt5/erp5_open_trade/WorkflowTemplateItem/portal_workflow/open_order_workflow/scripts/OpenOrder_archivePrevious.xml b/bt5/erp5_open_trade/WorkflowTemplateItem/portal_workflow/open_order_workflow/scripts/OpenOrder_archivePrevious.xml index b749f1d3242d545696600fa0d4ae86703e743826..b6596c9c18510734158b82f523680a9405eec9b6 100644 --- a/bt5/erp5_open_trade/WorkflowTemplateItem/portal_workflow/open_order_workflow/scripts/OpenOrder_archivePrevious.xml +++ b/bt5/erp5_open_trade/WorkflowTemplateItem/portal_workflow/open_order_workflow/scripts/OpenOrder_archivePrevious.xml @@ -58,7 +58,7 @@ if not open_order.getReference():\n this_uid = open_order.getUid()\n \n # archive previously active open order with same reference\n -for open_order in sci.getPortal().portal_catalog.searchFolder(\n +for open_order in sci.getPortal().portal_catalog.searchResults(\n portal_type=open_order.getPortalType(),\n reference=open_order.getReference(),\n validation_state=\'validated\'):\n diff --git a/bt5/erp5_open_trade/bt/revision b/bt5/erp5_open_trade/bt/revision index 56749c830e6a7dee4812f62215c7f689d791d8c7..c4fbb1cfac0ba7a86115b48a39b49daea09da15a 100644 --- a/bt5/erp5_open_trade/bt/revision +++ b/bt5/erp5_open_trade/bt/revision @@ -1 +1 @@ -96 \ No newline at end of file +97 \ No newline at end of file