Commit fcc1d17d authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_mrp_quality_assurance: let's check all manually line to make sure nothing is missing

parent fe5736ec
Pipeline #37101 passed with stage
in 0 seconds
if context.getPortalType() != 'Manufacturing Execution':
raise ValueError(' %s type error' % context.getRelativeUrl())
if context.getSimulationState() in ('started', 'stopped'):
for line_id in line_id_list:
line = context[line_id]
line.fixConsistency()
quality_control = line.getAggregateValue(portal_type='Quality Control')
quality_control.confirm()
for line in context.objectValues(portal_type='Manufacturing Execution Line'):
if line.getIntIndex() == -1:
line.fixConsistency()
quality_control = line.getAggregateValue(portal_type='Quality Control')
if quality_control.getValidationState() == 'queued':
quality_control.confirm()
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