1、优化工单子页签可全量配置处理方法;
This commit is contained in:
@@ -93,7 +93,8 @@ class QualityCheck(models.Model):
|
||||
raise ValidationError('请填写【判定结果】里的信息')
|
||||
if self.test_results == '合格':
|
||||
raise ValidationError('请重新选择【判定结果】-【检测结果】')
|
||||
if self.workorder_id.routing_type != 'CNC加工' and 'PTD' not in self.workorder_id.individuation_page_list:
|
||||
if (self.workorder_id.routing_type != 'CNC加工' and self.workorder_id.individuation_page_list
|
||||
and 'PTD' not in self.workorder_id.individuation_page_list):
|
||||
self.workorder_id.production_id.write({'detection_result_ids': [(0, 0, {
|
||||
'rework_reason': self.reason,
|
||||
'detailed_reason': self.detailed_reason,
|
||||
|
||||
Reference in New Issue
Block a user