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