优化订单状态条件及物流的容错处理
This commit is contained in:
@@ -111,7 +111,7 @@ class MrpProduction(models.Model):
|
||||
production.state = 'progress'
|
||||
|
||||
# # 新添加的状态逻辑
|
||||
if production.state == 'to_close' and production.schedule_state == '未排':
|
||||
if (production.state == 'to_close' or production.state == 'progress') and production.schedule_state == '未排':
|
||||
production.state = 'confirmed'
|
||||
elif production.state == 'to_close' and production.schedule_state == '已排':
|
||||
production.state = 'pending_cam'
|
||||
|
||||
Reference in New Issue
Block a user