Merge branch 'develop' of https://e.coding.net/jikimo-hn/jikimo_sfs/jikimo_sf into feature/修复工单完成接口
This commit is contained in:
@@ -175,7 +175,7 @@ class JdEclp(models.Model):
|
|||||||
'type': 'success',
|
'type': 'success',
|
||||||
'message': '物流下单成功',
|
'message': '物流下单成功',
|
||||||
'sticky': False,
|
'sticky': False,
|
||||||
'next': {'type': 'ir.actions.client', 'tag': 'soft_reload'}
|
'next': {'type': 'ir.actions.client', 'tag': 'reload'}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -111,11 +111,16 @@ class MrpProduction(models.Model):
|
|||||||
production.state = 'progress'
|
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'
|
production.state = 'confirmed'
|
||||||
elif production.state == 'to_close' and production.schedule_state == '已排':
|
elif production.state == 'to_close' and production.schedule_state == '已排':
|
||||||
production.state = 'pending_cam'
|
production.state = 'pending_cam'
|
||||||
|
|
||||||
|
if production.state == 'progress':
|
||||||
|
if all(wo_state not in ('progress', 'done') for wo_state in production.workorder_ids.mapped('state')):
|
||||||
|
production.state = 'pending_cam'
|
||||||
|
|
||||||
|
|
||||||
def action_check(self):
|
def action_check(self):
|
||||||
"""
|
"""
|
||||||
审核启用
|
审核启用
|
||||||
|
|||||||
Reference in New Issue
Block a user