fix: Get Items button
This commit is contained in:
parent
669cff88d1
commit
6450be5e58
@ -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"), () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user