Commit 186d7910 authored by Gabriel Monnerat's avatar Gabriel Monnerat

change condition to ignore sale packing lists with state delivered

parent 2a8c249f
......@@ -52,7 +52,7 @@
<key> <string>_body</string> </key>
<value> <string>from Products.ERP5Type.Log import log\n
packing_list_line = context.SlaveInstance_getInstanceHostingPackingListLine(state_change)\n
if packing_list_line.getSimulationState() != "started":\n
if packing_list_line.getSimulationState() not in ("started", "delivered"):\n
packing_list_line.getParentValue().start()\n
else:\n
slave_instance = state_change["object"].getRelativeUrl()\n
......
263
\ No newline at end of file
264
\ 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