From d7779cdb58771cc568912310d3a4aba3815bdb96 Mon Sep 17 00:00:00 2001 From: "jinling.yang" Date: Tue, 11 Jun 2024 16:57:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=9F=E6=88=90=E5=88=B6?= =?UTF-8?q?=E9=80=A0=E8=AE=A2=E5=8D=95=E6=97=B6=E6=9C=AA=E7=94=9F=E6=88=90?= =?UTF-8?q?=E7=BC=96=E7=A8=8B=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_manufacturing/models/mrp_production.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sf_manufacturing/models/mrp_production.py b/sf_manufacturing/models/mrp_production.py index 6048be00..4b9de955 100644 --- a/sf_manufacturing/models/mrp_production.py +++ b/sf_manufacturing/models/mrp_production.py @@ -338,8 +338,8 @@ class MrpProduction(models.Model): limit=1, order='id asc') if not production_programming.programming_no or (is_fetchcnc is True and scrap_production): # 制造订单报废/返工也需重新编程 - if (is_fetchcnc is True and scrap_production) or ( - is_fetchcnc is False and scrap_production): + if (is_fetchcnc is True and scrap_production is False) or ( + is_fetchcnc is False and scrap_production is False): production.fetchCNC(', '.join(product_id_to_production_names[production.product_id.id]), scrap_production) else: