From dc455a3c24e3a6d723685e43e3314feb54aaeb5c Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Thu, 1 Jun 2017 19:02:01 +0530 Subject: [PATCH] Row with label like Opening not displaying in the General Ledger report if user has set user permissions (#3414) --- frappe/desk/query_report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/desk/query_report.py b/frappe/desk/query_report.py index 096467f9f8..24a37725ad 100644 --- a/frappe/desk/query_report.py +++ b/frappe/desk/query_report.py @@ -287,7 +287,7 @@ def has_match(row, linked_doctypes, doctype_match_filters, ref_doctype, if_owner if dt=="User" and columns_dict[idx]==columns_dict.get("owner"): continue - if dt in match_filters and row[idx] not in match_filters[dt]: + if dt in match_filters and row[idx] not in match_filters[dt] and frappe.db.exists(dt, row[idx]): match = False break