From d2581d8500cce0aa14dbbb62c598449629384415 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 30 Apr 2026 09:09:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20is=5Ffix=20=E6=97=A5=E5=BF=97=E4=B8=8D?= =?UTF-8?q?=E5=86=8D=E7=BB=A7=E6=89=BF=E8=BE=93=E5=85=A5=E7=89=A9=E6=96=99?= =?UTF-8?q?=E7=9A=84=E7=BC=BA=E9=99=B7=E6=A0=87=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 (1M context) --- apps/wpm/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/wpm/models.py b/apps/wpm/models.py index da22705f..f0c9691b 100644 --- a/apps/wpm/models.py +++ b/apps/wpm/models.py @@ -538,6 +538,8 @@ class Mlogb(BaseModel): def get_default_inherited_defect(self): if self.material_out is None or self.material_out.tracking != Material.MA_TRACKING_BATCH: return None + if self.mlog_id and self.mlog and self.mlog.is_fix: + return None if self.mlogb_from_id and self.mlogb_from and self.mlogb_from.wm_in_id: return self.mlogb_from.wm_in.defect if self.wm_in_id and self.wm_in: