Skip to content

Commit c36f9e9

Browse files
mergify[bot]Pandiyan5273mihir-kandoi
authored
fix(manufacturing): close work order status when stock reservation is… (backport #53714) (#53721)
Co-authored-by: Pandiyan P <[email protected]> Co-authored-by: Mihir Kandoi <[email protected]> fix(manufacturing): close work order status when stock reservation is… (#53714)
1 parent d16adb1 commit c36f9e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

erpnext/manufacturing/doctype/work_order/work_order.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ def get_status(self, status=None):
587587
if self.docstatus == 0:
588588
status = "Draft"
589589
elif self.docstatus == 1:
590-
if status != "Stopped":
590+
if status not in ["Closed", "Stopped"]:
591591
status = "Not Started"
592592
if flt(self.material_transferred_for_manufacturing) > 0:
593593
status = "In Process"

0 commit comments

Comments
 (0)