fix: 'NoneType' object has no attribute 'stock_uom' (#19532)

This commit is contained in:
rohitwaghchaure 2019-11-08 14:43:53 +05:30 committed by Nabin Hait
parent 7a23057eab
commit d36c6068b2

View File

@ -173,8 +173,10 @@ frappe.ui.form.on('Pick List Item', {
}); });
function get_item_details(item_code, uom=null) { function get_item_details(item_code, uom=null) {
if (item_code) {
return frappe.xcall('erpnext.stock.doctype.pick_list.pick_list.get_item_details', { return frappe.xcall('erpnext.stock.doctype.pick_list.pick_list.get_item_details', {
item_code, item_code,
uom uom
}); });
}
} }