Merge pull request #57439 from frappe/mergify/bp/version-15-hotfix/pr-57435

fix(accounts): respect user permissions in party dashboard company list (backport #57435)
This commit is contained in:
Mihir Kandoi
2026-07-24 15:21:33 +05:30
committed by GitHub

View File

@@ -853,7 +853,7 @@ def get_dashboard_info(party_type, party, loyalty_program=None):
doctype = "Sales Invoice" if party_type == "Customer" else "Purchase Invoice"
companies = frappe.get_all(
companies = frappe.get_list(
doctype, filters={"docstatus": 1, party_type.lower(): party}, distinct=1, fields=["company"]
)