commit | a3a05c0c23be03edf46353ee3121426485eca36f | [log] [tgz] |
---|---|---|
author | Ankush Menat <ankush@frappe.io> | Tue Feb 01 17:40:06 2022 +0530 |
committer | GitHub <noreply@github.com> | Tue Feb 01 17:40:06 2022 +0530 |
tree | 12eb4e9fcea2dd9427ffd34ffc8a11ea9e3a3a9d | |
parent | 4055cc76a73037fce8afe74a1aadbb4b3e16f6a9 [diff] |
fix: don't show "create" on cancelled BOMs (#29570)
diff --git a/erpnext/manufacturing/doctype/bom/bom.js b/erpnext/manufacturing/doctype/bom/bom.js index fc3b971..8a7634e 100644 --- a/erpnext/manufacturing/doctype/bom/bom.js +++ b/erpnext/manufacturing/doctype/bom/bom.js
@@ -93,7 +93,7 @@ }); } - if(frm.doc.docstatus!=0) { + if(frm.doc.docstatus==1) { frm.add_custom_button(__("Work Order"), function() { frm.trigger("make_work_order"); }, __("Create"));