Commit efb47f18 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

the condition was wrong in r35806 (if delivery category is used in root...

the condition was wrong in r35806 (if delivery category is used in root applied rule, we don't want to check if we have delivery in the first level simulation movement to determine if the simulation is mutable or deletable).


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36604 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3f43f4fb
......@@ -338,10 +338,10 @@ class Rule(Predicate, XMLObject):
if movement.isFrozen():
immutable_movement_list.append(movement)
else:
if is_root and movement.hasOrder():
ignore_first = False
else:
if is_root and not movement.hasOrder():
ignore_first = True
else:
ignore_first = False
if movement._isTreeDelivered(ignore_first=ignore_first):
mutable_movement_list.append(movement)
else:
......
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