修改工单状态

This commit is contained in:
mgw
2024-03-05 11:37:21 +08:00
parent 3ca5c02880
commit fcbe33714e

View File

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