From 468ca2bde16116c02cd174106be82f69337387f4 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Mon, 23 Mar 2026 16:28:01 +0000 Subject: [PATCH] =?UTF-8?q?fix(manufacturing):=20close=20work=20order=20st?= =?UTF-8?q?atus=20when=20stock=20reservation=20is=E2=80=A6=20(backport=20#?= =?UTF-8?q?53714)=20(#53720)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Pandiyan P Co-authored-by: Mihir Kandoi fix(manufacturing): close work order status when stock reservation is… (#53714) --- erpnext/manufacturing/doctype/work_order/work_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/manufacturing/doctype/work_order/work_order.py b/erpnext/manufacturing/doctype/work_order/work_order.py index 04974e2e2ba..bc3def1186f 100644 --- a/erpnext/manufacturing/doctype/work_order/work_order.py +++ b/erpnext/manufacturing/doctype/work_order/work_order.py @@ -383,7 +383,7 @@ class WorkOrder(Document): if self.docstatus == 0: status = "Draft" elif self.docstatus == 1: - if status != "Stopped": + if status not in ["Closed", "Stopped"]: status = "Not Started" if flt(self.material_transferred_for_manufacturing) > 0: status = "In Process"