Commit b58bf589 authored by Jean-Paul Smets's avatar Jean-Paul Smets

zero_stock rule is now cleaned after auto-planned orders are created


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@140 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9cf57a32
......@@ -40,6 +40,9 @@ for order in order_list:
order.autoPlan()
order.purchase_order_apply_condition()
# reEmpty Zero Stock because we don't want to see the zero_stock quantities in the columns future_stock
context.portal_simulation.zero_stock.deleteContent(context.portal_simulation.zero_stock.contentIds())
request = context.REQUEST
redirect_url = '%s/view?%s' % ( context.absolute_url()
, 'portal_status_message=%s+propositions+OF+crs.' % len(order_list)
......
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