From 466df6bdb76cbd7da88f4d092e608b4c39889929 Mon Sep 17 00:00:00 2001 From: Krithi Ramani Date: Mon, 14 Mar 2022 17:29:02 +0530 Subject: [PATCH] to enable selection of SO irrespective of customer,removed validation for customer --- erpnext/stock/doctype/pick_list/pick_list.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/erpnext/stock/doctype/pick_list/pick_list.js b/erpnext/stock/doctype/pick_list/pick_list.js index 730fd7a829..ababf3dc42 100644 --- a/erpnext/stock/doctype/pick_list/pick_list.js +++ b/erpnext/stock/doctype/pick_list/pick_list.js @@ -146,10 +146,7 @@ frappe.ui.form.on('Pick List', { customer: frm.doc.customer }; frm.get_items_btn = frm.add_custom_button(__('Get Items'), () => { - if (!frm.doc.customer) { - frappe.msgprint(__('Please select Customer first')); - return; - } + erpnext.utils.map_current_doc({ method: 'erpnext.selling.doctype.sales_order.sales_order.create_pick_list', source_doctype: 'Sales Order',