fix: don't show "create" on cancelled BOMs (#29570)
This commit is contained in:
parent
4055cc76a7
commit
a3a05c0c23
@ -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.trigger("make_work_order");
|
||||
}, __("Create"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user