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

- movement shall be immutable only if it is frozen and than do compensation,...

 - movement shall be immutable only if it is frozen and than do compensation, if its tree is delivered we shall propagate changes


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28004 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2b5a4e76
......@@ -83,12 +83,7 @@ class BPMOrderRule(BPMDeliveryRule):
# check existing movements
for simulation_movement in applied_rule.contentValues(
portal_type=self.movement_type):
if (not simulation_movement.getLastExpandSimulationState() in
order.getPortalReservedInventoryStateList() and
not simulation_movement.getLastExpandSimulationState() in
order.getPortalCurrentInventoryStateList()) and \
not simulation_movement._isTreeDelivered():
if not simulation_movement.isFrozen():
movement_order = simulation_movement.getOrderValue()
if movement_order in order_movement_list:
existing_movement_list.append(simulation_movement)
......
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