fix(Work Order): added freeze when trying to stop work order (#26192) (#26196)

* fix: added freeze when trying to stop work order

* fix(ux): add freeze message

Co-authored-by: Noah Jacob <noahjacobkurian@gmail.com>
This commit is contained in:
Ankush 2021-06-24 14:24:28 +05:30 committed by GitHub
parent ce99701150
commit 98e98d25e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -704,6 +704,8 @@ erpnext.work_order = {
stop_work_order: function(frm, status) {
frappe.call({
method: "erpnext.manufacturing.doctype.work_order.work_order.stop_unstop",
freeze: true,
freeze_message: __("Updating Work Order status"),
args: {
work_order: frm.doc.name,
status: status