Commit eb0be7f3 authored by Łukasz Nowak's avatar Łukasz Nowak

- really work on all found packing lists

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43990 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d1a93516
...@@ -77,6 +77,7 @@ for sale_packing_list_line in portal.portal_catalog(\n ...@@ -77,6 +77,7 @@ for sale_packing_list_line in portal.portal_catalog(\n
default_aggregate_uid=software_instance.getUid(),\n default_aggregate_uid=software_instance.getUid(),\n
simulation_state=NegatedQuery(Query(simulation_state="delivered")),\n simulation_state=NegatedQuery(Query(simulation_state="delivered")),\n
):\n ):\n
sale_packing_list = sale_packing_list_line.getParentValue()\n
if sale_packing_list.getPortalObject().portal_workflow.isTransitionPossible(sale_packing_list, \'start\'):\n if sale_packing_list.getPortalObject().portal_workflow.isTransitionPossible(sale_packing_list, \'start\'):\n
sale_packing_list.start()\n sale_packing_list.start()\n
if sale_packing_list.getPortalObject().portal_workflow.isTransitionPossible(sale_packing_list, \'stop\'):\n if sale_packing_list.getPortalObject().portal_workflow.isTransitionPossible(sale_packing_list, \'stop\'):\n
......
358 359
\ No newline at end of file \ 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