Commit b0420513 authored by Sebastien Robin's avatar Sebastien Robin

make sure to take only deliveries while we are looking for remaining operations

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11585 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 699c1613
......@@ -76,12 +76,15 @@ if site is None:\n
root_site_url = context.Baobab_getUserAssignedRootSiteList()[0]\n
site = context.portal_categories.restrictedTraverse(root_site_url)\n
root_site_uid = site.getUid()\n
portal_type_list = context.getPortalDeliveryTypeList()\n
document_list = [x.getObject() for x in context.portal_catalog(\n
simulation_state=not_closed_state_list,\n
source_uid=root_site_uid)]\n
source_uid=root_site_uid,\n
portal_type=portal_type_list)]\n
document_list.extend([x.getObject() for x in context.portal_catalog(\n
simulation_state=not_closed_state_list,\n
destination_uid=root_site_uid)])\n
destination_uid=root_site_uid,\n
portal_type=portal_type_list)])\n
for document in document_list:\n
# Cash movement in ordered stated are allowed\n
if document.getPortalType() in (\'Cash Movement\',):\n
......@@ -159,6 +162,7 @@ for document in document_list:\n
<string>context</string>
<string>root_site_url</string>
<string>root_site_uid</string>
<string>portal_type_list</string>
<string>append</string>
<string>$append0</string>
<string>_getiter_</string>
......
78
\ No newline at end of file
80
\ No newline at end of file
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