fix(manufacturing): update status for work order before calculating planned qty

(cherry picked from commit 4d40c84a31)
This commit is contained in:
Sudharsanan11
2026-02-19 12:59:11 +05:30
committed by Mergify
parent 377435fa7d
commit b3bcfd5a64

View File

@@ -1607,8 +1607,8 @@ def close_work_order(work_order, status):
)
)
work_order.on_close_or_cancel()
work_order.update_status(status)
work_order.on_close_or_cancel()
frappe.msgprint(_("Work Order has been {0}").format(status))
work_order.notify_update()
return work_order.status