Show duplicate button in BOM unless in draft stage (#8826)
This commit is contained in:
parent
3e2c9d00f1
commit
bdb2f95957
@ -33,9 +33,7 @@ frappe.ui.form.on("BOM", {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if(frm.doc.docstatus==2) {
|
if(frm.doc.docstatus!=0) {
|
||||||
// show duplicate button when BOM is cancelled,
|
|
||||||
// its not very intuitive
|
|
||||||
frm.add_custom_button(__("Duplicate"), function() {
|
frm.add_custom_button(__("Duplicate"), function() {
|
||||||
frm.copy_doc();
|
frm.copy_doc();
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user