diff --git a/sf_bf_connect/models/jd_eclp.py b/sf_bf_connect/models/jd_eclp.py index 744bb6d1..7879938e 100644 --- a/sf_bf_connect/models/jd_eclp.py +++ b/sf_bf_connect/models/jd_eclp.py @@ -175,7 +175,7 @@ class JdEclp(models.Model): 'type': 'success', 'message': '物流下单成功', 'sticky': False, - 'next': {'type': 'ir.actions.client', 'tag': 'soft_reload'} + 'next': {'type': 'ir.actions.client', 'tag': 'reload'} } } diff --git a/sf_manufacturing/models/mrp_production.py b/sf_manufacturing/models/mrp_production.py index 7464886d..71cd86b5 100644 --- a/sf_manufacturing/models/mrp_production.py +++ b/sf_manufacturing/models/mrp_production.py @@ -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'