Commit 084f3d06 authored by Łukasz Nowak's avatar Łukasz Nowak

Avoid duplicate expand call.

Delivery_splitAndDefer is already taking care of updating applied rule, and
does it better - with using tag.

This creates non attached expand activities which just consumes CPU for nothing.
parent be91bbfb
......@@ -55,13 +55,11 @@
stop_date = state_change.kwargs[\'stop_date\']\n
start_date = state_change.kwargs[\'start_date\']\n
\n
tag = delivery.getPath() + \'_split\'\n
split_and_defer = 0\n
listbox = state_change[\'kwargs\'].get(\'listbox\')\n
split_movement_list = []\n
if listbox is not None:\n
# Create Delivery Applied Rule (if required)\n
delivery.Delivery_updateAppliedRule()\n
for line in listbox:\n
url = line[\'listbox_key\']\n
choice = line[\'choice\']\n
......
1010
\ No newline at end of file
1011
\ 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