Commit 1888b479 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_mrp: only expand when it's confirmed

parent 52cd8aa3
specialise_list = context.getSpecialiseValueList(portal_type="Transformation")
if (len(specialise_list) == 1 and
context.getResource() == specialise_list[0].getResource()):
context.getResource() == specialise_list[0].getResource() and context.getSimulationState() == 'confirmed'):
parent = context.getParentValue()
parent_specialise_portal_type = parent.getSpecialiseValue().getPortalType()
# Case Manufacturing Order at the root producing a Manufacturing Execution
......
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