过滤掉检测结果为合格的数据
This commit is contained in:
@@ -105,7 +105,10 @@ class ResMrpWorkOrder(models.Model):
|
|||||||
record.back_button_display = False
|
record.back_button_display = False
|
||||||
# tag_type
|
# tag_type
|
||||||
if cur_workorder.is_subcontract or cur_workorder.name == '解除装夹' or any(
|
if cur_workorder.is_subcontract or cur_workorder.name == '解除装夹' or any(
|
||||||
detection_result.processing_panel == cur_workorder.processing_panel and detection_result.routing_type == cur_workorder.routing_type and cur_workorder.tag_type !='重新加工'
|
detection_result.processing_panel == cur_workorder.processing_panel and
|
||||||
|
detection_result.routing_type == cur_workorder.routing_type and
|
||||||
|
cur_workorder.tag_type !='重新加工' and
|
||||||
|
detection_result.test_results != '合格'
|
||||||
for detection_result in cur_workorder.production_id.detection_result_ids
|
for detection_result in cur_workorder.production_id.detection_result_ids
|
||||||
):
|
):
|
||||||
record.back_button_display = False
|
record.back_button_display = False
|
||||||
@@ -118,7 +121,10 @@ class ResMrpWorkOrder(models.Model):
|
|||||||
else:
|
else:
|
||||||
record.back_button_display = False
|
record.back_button_display = False
|
||||||
if cur_workorder.is_subcontract or cur_workorder.name == '解除装夹' or any(
|
if cur_workorder.is_subcontract or cur_workorder.name == '解除装夹' or any(
|
||||||
detection_result.processing_panel == cur_workorder.processing_panel and detection_result.routing_type == cur_workorder.routing_type and cur_workorder.tag_type !='重新加工'
|
detection_result.processing_panel == cur_workorder.processing_panel and
|
||||||
|
detection_result.routing_type == cur_workorder.routing_type and
|
||||||
|
cur_workorder.tag_type !='重新加工' and
|
||||||
|
detection_result.test_results != '合格'
|
||||||
for detection_result in cur_workorder.production_id.detection_result_ids
|
for detection_result in cur_workorder.production_id.detection_result_ids
|
||||||
):
|
):
|
||||||
record.back_button_display = False
|
record.back_button_display = False
|
||||||
|
|||||||
Reference in New Issue
Block a user