From 58863805bdcfff99a446934fdf7d668af045f8f2 Mon Sep 17 00:00:00 2001 From: Jatin3128 <140256508+Jatin3128@users.noreply.github.com> Date: Tue, 4 Aug 2026 11:36:22 +0530 Subject: [PATCH] fix: Simplify source retrieval logic in get_item_details Removed permission check for source parent in get_item_details.py. --- erpnext/stock/get_item_details.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/get_item_details.py b/erpnext/stock/get_item_details.py index 8dc0bd0cb3b..60bc6402132 100644 --- a/erpnext/stock/get_item_details.py +++ b/erpnext/stock/get_item_details.py @@ -239,7 +239,7 @@ def get_rate_locked_source_row(ctx: ItemDetailsCtx, doc) -> frappe._dict | None: source = frappe.db.get_value( source_doctype, source_name, [*LOCKED_RATE_FIELDS, "parent", "parenttype"], as_dict=True ) - if source and frappe.has_permission(source.parenttype, doc=source.parent): + if source: return source return None return None