From 783aca5a7c7c287d6ef3938b422c7759795cdf9b Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Wed, 27 Dec 2023 17:21:46 +0530 Subject: [PATCH] fix: replaced lead/deal_owner with assigned_to in default lead/deal list view settings --- crm/fcrm/doctype/crm_deal/crm_deal.py | 8 ++++---- crm/fcrm/doctype/crm_lead/crm_lead.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/crm/fcrm/doctype/crm_deal/crm_deal.py b/crm/fcrm/doctype/crm_deal/crm_deal.py index 076c62ee..7cc0b688 100644 --- a/crm/fcrm/doctype/crm_deal/crm_deal.py +++ b/crm/fcrm/doctype/crm_deal/crm_deal.py @@ -140,10 +140,9 @@ class CRMDeal(Document): 'width': '11rem', }, { - 'label': 'Deal Owner', - 'type': 'Link', - 'key': 'deal_owner', - 'options': 'User', + 'label': 'Assigned To', + 'type': 'Text', + 'key': '_assign', 'width': '10rem', }, { @@ -166,6 +165,7 @@ class CRMDeal(Document): "first_response_time", "first_responded_on", "modified", + "_assign", ] return {'columns': columns, 'rows': rows} diff --git a/crm/fcrm/doctype/crm_lead/crm_lead.py b/crm/fcrm/doctype/crm_lead/crm_lead.py index 779e0085..94f9c824 100644 --- a/crm/fcrm/doctype/crm_lead/crm_lead.py +++ b/crm/fcrm/doctype/crm_lead/crm_lead.py @@ -231,10 +231,9 @@ class CRMLead(Document): 'width': '11rem', }, { - 'label': 'Lead Owner', - 'type': 'Link', - 'key': 'lead_owner', - 'options': 'User', + 'label': 'Assigned To', + 'type': 'Text', + 'key': '_assign', 'width': '10rem', }, { @@ -258,6 +257,7 @@ class CRMLead(Document): "first_response_time", "first_responded_on", "modified", + "_assign", "image", ] return {'columns': columns, 'rows': rows}