From 4992640d08406c73819013412c207745e96d0b70 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Fri, 7 Jun 2024 20:25:14 +0530 Subject: [PATCH] fix: minor fix --- crm/install.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crm/install.py b/crm/install.py index c20c7a9c..923cbd4e 100644 --- a/crm/install.py +++ b/crm/install.py @@ -113,7 +113,7 @@ def add_default_fields_layout(): layouts = { "CRM Lead-Quick Entry": { "doctype": "CRM Lead", - "layout": '[\n{\n"label": "Person",\n"hideLabel": true,\n\t"fields": ["salutation", "first_name", "last_name", "email", "mobile_no", "gender"]\n},\n{\n"label": "Organization",\n"hideLabel": true,\n\t"fields": ["organization", "website", "no_of_employees", "territory", "annual_revenue", "industry"]\n},\n{\n"label": "Other",\n"hideLabel": true,\n"columns": 2,\n\t"fields": ["status", "lead_owner"]\n}\n]' + "layout": '[\n{\n"label": "Person",\n\t"fields": ["salutation", "first_name", "last_name", "email", "mobile_no", "gender"]\n},\n{\n"label": "Organization",\n\t"fields": ["organization", "website", "no_of_employees", "territory", "annual_revenue", "industry"]\n},\n{\n"label": "Other",\n"columns": 2,\n\t"fields": ["status", "lead_owner"]\n}\n]' }, "CRM Deal-Quick Entry": { "doctype": "CRM Deal", @@ -135,8 +135,8 @@ def add_default_fields_layout(): doc = frappe.new_doc("CRM Fields Layout") doc.type = "Quick Entry" - doc.dt = layout.doctype - doc.layout = layout.layout + doc.dt = layouts[layout]["doctype"] + doc.layout = layouts[layout]["layout"] doc.insert() def add_property_setter():