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

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 16:28:01 +00:00
committed by GitHub
parent 28aa21bf83
commit 468ca2bde1

View File

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