From 6450be5e58fa070badf11bb03a2274a00f9e96d1 Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Mon, 19 Aug 2019 10:48:21 +0530 Subject: [PATCH] fix: Get Items button --- erpnext/stock/doctype/pick_list/pick_list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/pick_list/pick_list.js b/erpnext/stock/doctype/pick_list/pick_list.js index cb3cec6ab6..2e72d98d3f 100644 --- a/erpnext/stock/doctype/pick_list/pick_list.js +++ b/erpnext/stock/doctype/pick_list/pick_list.js @@ -36,7 +36,7 @@ frappe.ui.form.on('Pick List', { 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"), () => {