diff --git a/sf_manufacturing/models/mrp_production.py b/sf_manufacturing/models/mrp_production.py index 2ca0dbc6..d843c283 100644 --- a/sf_manufacturing/models/mrp_production.py +++ b/sf_manufacturing/models/mrp_production.py @@ -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): """