From 86747b77a6e44ced750154ec2f83deb7b91bd4cd Mon Sep 17 00:00:00 2001 From: mgw <1392924357@qq.com> Date: Tue, 14 Jan 2025 08:47:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=88=A4=E6=96=AD=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_manufacturing/models/mrp_production.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sf_manufacturing/models/mrp_production.py b/sf_manufacturing/models/mrp_production.py index 5f1f51b6..06e452d3 100644 --- a/sf_manufacturing/models/mrp_production.py +++ b/sf_manufacturing/models/mrp_production.py @@ -1651,7 +1651,7 @@ class MrpProduction(models.Model): raise UserError('仅支持选择单个制造订单进行编程申请,请重新选择') problem_productions = [] for production in self: - if production.state not in ['待排程', '待加工'] or production.programming_state != '已编程': + if production.state not in ['confirmed', 'pending_cam'] or production.programming_state != '已编程': problem_productions.append(production.name) if problem_productions: raise UserError('制造订单%s的状态(仅限待排程、待加工)或编程状态(仅限已编程)不符合要求,请检查!' % ' '.join(problem_productions))