Commit 83f6ea69 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_mrp: support variation

parent 2df41837
......@@ -5,7 +5,7 @@ if parent.getPortalType() == 'Applied Rule' and movement.getSpecialiseValue(port
grand_parent = parent.getParentValue()
if grand_parent.getPortalType() == "Simulation Movement" and \
grand_parent.getDeliveryValue() and \
grand_parent.getDeliveryValue().getPortalType() == "Production Order Line":
grand_parent.getDeliveryValue().getPortalType() in ("Production Order Line", "Production Order Cell"):
resource_value = grand_parent.getDeliveryValue().getResourceValue()
result = resource_value is not None
return result
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