增加中控接口返回对工单、计划单属性的改变(状态,时间等)

This commit is contained in:
mgw
2024-02-27 11:42:59 +08:00
parent dfada55cf7
commit fdddf19d13
5 changed files with 62 additions and 15 deletions

View File

@@ -92,7 +92,9 @@ class MrpProduction(models.Model):
# 新添加的状态逻辑
if production.state == 'progress' and production.schedule_state == '已排':
production.state = 'pending_processing'
elif production.state == 'progress' and production.schedule_state == '已完成':
# elif production.state == 'progress' and production.schedule_state == '已完成':
# production.state = 'completed'
elif production.state == 'pending_processing' and production.schedule_state == '已完成':
production.state = 'completed'
def action_check(self):