Accept Merge Request #885: (feature/制造代码优化 -> develop)

Merge Request: 修改工单状态

Created By: @马广威
Accepted By: @马广威
URL: https://jikimo-hn.coding.net/p/jikimo_sfs/d/jikimo_sf/git/merge/885?initial=true
This commit is contained in:
马广威
2024-03-05 11:37:56 +08:00
committed by Coding

View File

@@ -96,6 +96,8 @@ class MrpProduction(models.Model):
# production.state = 'completed' # production.state = 'completed'
elif production.state == 'pending_processing' and production.schedule_state == '已完成': elif production.state == 'pending_processing' and production.schedule_state == '已完成':
production.state = 'completed' production.state = 'completed'
elif production.state == 'progress' and production.schedule_state == '已完成':
production.state = 'completed'
def action_check(self): def action_check(self):
""" """