From be7ac19cc74a79ca30f6cb6592ce5b4f55971194 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Wed, 19 Jun 2024 19:31:16 +0530 Subject: [PATCH] patch: added patch to update deal quick entry layout to restrict editing section label and removing it --- crm/patches/v1_0/update_deal_quick_entry_layout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crm/patches/v1_0/update_deal_quick_entry_layout.py b/crm/patches/v1_0/update_deal_quick_entry_layout.py index 9cc54516..fc52e2ac 100644 --- a/crm/patches/v1_0/update_deal_quick_entry_layout.py +++ b/crm/patches/v1_0/update_deal_quick_entry_layout.py @@ -10,6 +10,6 @@ def execute(): layout = json.loads(deal) for section in layout: if section.get("label") in ["Select Organization", "Organization Details", "Select Contact", "Contact Details"]: - section["editable"] = True + section["editable"] = False frappe.db.set_value("CRM Fields Layout", "CRM Deal-Quick Entry", "layout", json.dumps(layout)) \ No newline at end of file