mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-13 06:31:48 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user