Commit 8c4f4558 authored by Łukasz Nowak's avatar Łukasz Nowak

- use BPM enabled frozen movement state


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28002 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dd56563a
......@@ -82,11 +82,7 @@ class BPMDeliveryRule(BPMRule):
# Check existing movements
for movement in applied_rule.contentValues(
portal_type=self.movement_type):
if movement.getLastExpandSimulationState() not in \
self.getPortalCurrentInventoryStateList():
# XXX: This condition is quick and dirty hack - knowing if
# Simulation Movement is frozen shall not be ever hardcoded,
# this is BPM configuration
if not movement.isFrozen():
movement_delivery = movement.getDeliveryValue()
if not movement._isTreeDelivered(ignore_first=1) and \
movement_delivery not in delivery_movement_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