完成 工单子页签可全量配置

This commit is contained in:
yuxianghui
2025-03-05 11:24:48 +08:00
parent 28a3d52aea
commit 7d4314abc7
10 changed files with 94 additions and 30 deletions

View File

@@ -365,7 +365,7 @@ class MrpProduction(models.Model):
and production.schedule_state == '已排' and production.is_rework is False):
production.state = 'pending_cam'
if any((wo.test_results == '返工' and wo.state == 'done' and
(production.programming_state in ['已编程'] or wo.individuation_page_PTD is True))
(production.programming_state in ['已编程'] or 'PTD' in wo.individuation_page_list))
or (wo.is_rework is True and wo.state == 'done' and production.programming_state in ['编程中', '已编程'])
for wo in production.workorder_ids) or production.is_rework is True:
production.state = 'rework'