From 4a783fcba8241ec73f0def366830144a8e2c870d Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Mon, 14 Jul 2025 14:22:53 +0530 Subject: [PATCH] fix: show edit button to manager --- crm/api/dashboard.py | 2 +- frontend/src/pages/Dashboard.vue | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/crm/api/dashboard.py b/crm/api/dashboard.py index 8a42e124..6e7b3e4f 100644 --- a/crm/api/dashboard.py +++ b/crm/api/dashboard.py @@ -919,7 +919,7 @@ def get_deals_by_source(from_date="", to_date="", user=""): to_date = frappe.utils.get_last_day(to_date or frappe.utils.nowdate()) if user: - deal_conds += f" AND lead_owner = '{user}'" + deal_conds += f" AND deal_owner = '{user}'" result = frappe.db.sql( f""" diff --git a/frontend/src/pages/Dashboard.vue b/frontend/src/pages/Dashboard.vue index 9901c0c5..3cbc1e25 100644 --- a/frontend/src/pages/Dashboard.vue +++ b/frontend/src/pages/Dashboard.vue @@ -14,7 +14,11 @@ -