From dbe2a87a8463195bf02a5a14b0a266fae9c0cb4d Mon Sep 17 00:00:00 2001 From: Mihir Kandoi Date: Fri, 20 Feb 2026 10:14:30 +0530 Subject: [PATCH] fix: sensible insufficient stock message in pick list (cherry picked from commit 1352dc79bb2128ea0dd4122bd7205e481e89cabc) --- erpnext/stock/doctype/pick_list/pick_list.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/erpnext/stock/doctype/pick_list/pick_list.py b/erpnext/stock/doctype/pick_list/pick_list.py index d9b1d29e5aa..4d7f4586d6b 100644 --- a/erpnext/stock/doctype/pick_list/pick_list.py +++ b/erpnext/stock/doctype/pick_list/pick_list.py @@ -1006,12 +1006,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(