fix(UX): group work order actions under the Create menu

Pick List, Material Request, Material Consumption and Additional
Material Transfer were spread across two standalone buttons and a
separate Make menu. Put them all under a single Create menu, and rename
Create Pick List to Pick List since the menu already says Create.
custom_make_buttons is updated to the new label so the connections
shortcut still finds the button.
This commit is contained in:
Mihir Kandoi
2026-08-06 23:02:05 +05:30
parent e1815cb5a9
commit 780ab3ba3e

View File

@@ -5,7 +5,7 @@ frappe.ui.form.on("Work Order", {
setup: function (frm) {
frm.custom_make_buttons = {
"Stock Entry": "Start",
"Pick List": "Create Pick List",
"Pick List": "Pick List",
"Job Card": "Create Job Card",
};
@@ -818,13 +818,21 @@ erpnext.work_order = {
if (pending_to_transfer && frm.doc.status != "Stopped") {
frm.has_start_btn = true;
frm.add_custom_button(__("Create Pick List"), function () {
erpnext.work_order.create_pick_list(frm);
});
frm.add_custom_button(
__("Pick List"),
function () {
erpnext.work_order.create_pick_list(frm);
},
__("Create")
);
frm.add_custom_button(__("Material Request"), function () {
erpnext.work_order.make_material_request(frm);
});
frm.add_custom_button(
__("Material Request"),
function () {
erpnext.work_order.make_material_request(frm);
},
__("Create")
);
var start_btn = frm.add_custom_button(__("Start"), function () {
erpnext.work_order.make_se(frm, "Material Transfer for Manufacture");
@@ -861,7 +869,7 @@ erpnext.work_order = {
frappe.set_route("Form", stock_entry.doctype, stock_entry.name);
});
},
__("Make")
__("Create")
);
}
}
@@ -895,7 +903,7 @@ erpnext.work_order = {
backflush_raw_materials_based_on
);
},
__("Make")
__("Create")
);
}
}