mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-27 10:38:30 +00:00
fix: 'NoneType' object has no attribute 'stock_uom' (#19532)
This commit is contained in:
committed by
Nabin Hait
parent
7a23057eab
commit
d36c6068b2
@@ -173,8 +173,10 @@ frappe.ui.form.on('Pick List Item', {
|
||||
});
|
||||
|
||||
function get_item_details(item_code, uom=null) {
|
||||
return frappe.xcall('erpnext.stock.doctype.pick_list.pick_list.get_item_details', {
|
||||
item_code,
|
||||
uom
|
||||
});
|
||||
if (item_code) {
|
||||
return frappe.xcall('erpnext.stock.doctype.pick_list.pick_list.get_item_details', {
|
||||
item_code,
|
||||
uom
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user