fix: Simplify source retrieval logic in get_item_details

Removed permission check for source parent in get_item_details.py.
This commit is contained in:
Jatin3128
2026-08-04 11:36:22 +05:30
committed by GitHub
parent 0837fa31d1
commit 58863805bd

View File

@@ -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