fix: sensible insufficient stock message in pick list

(cherry picked from commit 1352dc79bb)
This commit is contained in:
Mihir Kandoi
2026-02-20 10:14:30 +05:30
committed by Mergify
parent de571c9266
commit 3bafa360b2

View File

@@ -997,12 +997,11 @@ def validate_picked_materials(item_code, required_qty, locations, picked_item_de
if remaining_qty > 0:
if picked_item_details:
frappe.msgprint(
_("{0} units of Item {1} is picked in another Pick List.").format(
remaining_qty, get_link_to_form("Item", item_code)
),
_(
"{0} units of Item {1} is not available in any of the warehouses. Other Pick Lists exist for this item."
).format(remaining_qty, get_link_to_form("Item", item_code)),
title=_("Already Picked"),
)
else:
frappe.msgprint(
_("{0} units of Item {1} is not available in any of the warehouses.").format(