(cherry picked from commit a3a05c0c23)
Co-authored-by: Ankush Menat <ankush@frappe.io>
This commit is contained in:
@@ -93,7 +93,7 @@ frappe.ui.form.on("BOM", {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if(frm.doc.docstatus!=0) {
|
if(frm.doc.docstatus==1) {
|
||||||
frm.add_custom_button(__("Work Order"), function() {
|
frm.add_custom_button(__("Work Order"), function() {
|
||||||
frm.trigger("make_work_order");
|
frm.trigger("make_work_order");
|
||||||
}, __("Create"));
|
}, __("Create"));
|
||||||
|
|||||||
Reference in New Issue
Block a user