fix(manufacturing): close work order status when stock reservation is… (backport #53714) (#53721)

Co-authored-by: Pandiyan P <pandiyanpalani37@gmail.com>
Co-authored-by: Mihir Kandoi <kandoimihir@gmail.com>
fix(manufacturing): close work order status when stock reservation is… (#53714)
This commit is contained in:
mergify[bot]
2026-03-23 22:03:54 +05:30
committed by GitHub
parent d16adb1579
commit c36f9e9b1b

View File

@@ -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"