Commit ea7c2d41 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_mrp: get first from previous value

parent b3b1b0d8
......@@ -24,6 +24,10 @@ class DeliveryRuleMovementGenerator(MovementGeneratorMixin):
def _getInputMovementList(self, movement_list=None, rounding=None):
parent_simulation_movement = self._applied_rule.getParentValue().asContext()
resource_value = parent_simulation_movement.getResourceValue()
transformation = parent_simulation_movement.getParentValue().getParentValue().getSpecialiseValue()
if transformation:
transformation_list = [transformation]
else:
transformation_list = self._applied_rule.getPortalObject().portal_catalog(
portal_type="Transformation",
default_resource_uid=resource_value.getUid(),
......
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