fix: Get Items button
diff --git a/erpnext/stock/doctype/pick_list/pick_list.js b/erpnext/stock/doctype/pick_list/pick_list.js
index cb3cec6..2e72d98 100644
--- a/erpnext/stock/doctype/pick_list/pick_list.js
+++ b/erpnext/stock/doctype/pick_list/pick_list.js
@@ -36,7 +36,7 @@
frm.remove_custom_button(__("Get items"));
let source_doctype = frm.doc.items_based_on;
let method = 'erpnext.selling.doctype.sales_order.sales_order.make_pick_list';
- if (source_doctype === 'Sales Order') {
+ if (source_doctype === 'Work Order') {
method = 'erpnext.manufacturing.doctype.work_order.work_order.make_pick_list';
}
frm.add_custom_button(__("Get items"), () => {