From 8ebc2e38ece6bf43f6bae92ab68b5d7cec74f241 Mon Sep 17 00:00:00 2001 From: Pandiyan P Date: Mon, 23 Mar 2026 21:35:00 +0530 Subject: [PATCH] =?UTF-8?q?fix(manufacturing):=20close=20work=20order=20st?= =?UTF-8?q?atus=20when=20stock=20reservation=20is=E2=80=A6=20(#53714)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(manufacturing): close work order status when stock reservation is enabled * chore: better syntax --------- Co-authored-by: Mihir Kandoi --- 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 5e31d06fdca..50dd4688712 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"