From 8b22b859431380f2f9b1e2e5eeff853e1dc616b5 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Thu, 4 Jan 2024 20:54:55 +0530 Subject: [PATCH] fix: made organization fields editable --- crm/fcrm/doctype/crm_deal/crm_deal.json | 18 ++++++++---------- crm/fcrm/doctype/crm_lead/crm_lead.json | 16 ++++++---------- 2 files changed, 14 insertions(+), 20 deletions(-) diff --git a/crm/fcrm/doctype/crm_deal/crm_deal.json b/crm/fcrm/doctype/crm_deal/crm_deal.json index 73ac91be..0f3f8b4a 100644 --- a/crm/fcrm/doctype/crm_deal/crm_deal.json +++ b/crm/fcrm/doctype/crm_deal/crm_deal.json @@ -52,19 +52,17 @@ "label": "Probability" }, { - "fetch_from": "organization.annual_revenue", + "fetch_from": ".annual_revenue", "fieldname": "annual_revenue", "fieldtype": "Currency", - "label": "Amount", - "read_only": 1 + "label": "Amount" }, { - "fetch_from": "organization.website", + "fetch_from": ".website", "fieldname": "website", "fieldtype": "Data", "label": "Website", - "options": "URL", - "read_only": 1 + "options": "URL" }, { "fieldname": "close_date", @@ -212,11 +210,11 @@ "options": "CRM Communication Status" }, { - "fetch_from": "organization.territory", + "fetch_from": ".territory", "fieldname": "territory", - "fieldtype": "Data", + "fieldtype": "Link", "label": "Territory", - "read_only": 1 + "options": "CRM Territory" }, { "fieldname": "source", @@ -227,7 +225,7 @@ ], "index_web_pages_for_search": 1, "links": [], - "modified": "2024-01-04 20:02:23.823826", + "modified": "2024-01-04 20:53:31.618792", "modified_by": "Administrator", "module": "FCRM", "name": "CRM Deal", diff --git a/crm/fcrm/doctype/crm_lead/crm_lead.json b/crm/fcrm/doctype/crm_lead/crm_lead.json index 70569d62..ad15f430 100644 --- a/crm/fcrm/doctype/crm_lead/crm_lead.json +++ b/crm/fcrm/doctype/crm_lead/crm_lead.json @@ -101,12 +101,10 @@ "search_index": 1 }, { - "fetch_from": "organization.website", "fieldname": "website", "fieldtype": "Data", "label": "Website", - "options": "URL", - "read_only": 1 + "options": "URL" }, { "fieldname": "mobile_no", @@ -155,11 +153,10 @@ "options": "CRM Lead Source" }, { - "fetch_from": "organization.industry", "fieldname": "industry", - "fieldtype": "Data", + "fieldtype": "Link", "label": "Industry", - "read_only": 1 + "options": "CRM Industry" }, { "fieldname": "image", @@ -273,17 +270,16 @@ "options": "CRM Communication Status" }, { - "fetch_from": "organization.territory", "fieldname": "territory", - "fieldtype": "Data", + "fieldtype": "Link", "label": "Territory", - "read_only": 1 + "options": "CRM Territory" } ], "image_field": "image", "index_web_pages_for_search": 1, "links": [], - "modified": "2024-01-04 18:58:26.603817", + "modified": "2024-01-04 20:12:22.104289", "modified_by": "Administrator", "module": "FCRM", "name": "CRM Lead",