From c36f9e9b1b72295fde10ebd551695e1e3e040e84 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Mon, 23 Mar 2026 22:03:54 +0530 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(#53721)?= 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 4c317203295..f9d380964bc 100644 --- a/erpnext/manufacturing/doctype/work_order/work_order.py +++ b/erpnext/manufacturing/doctype/work_order/work_order.py @@ -587,7 +587,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"