fix: Get Items button

This commit is contained in:
Suraj Shetty 2019-08-19 10:48:21 +05:30
parent 669cff88d1
commit 6450be5e58

View File

@ -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"), () => {