From c4065b95b8f16d7550ddaff543467fb92e59d17c Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Mon, 18 Aug 2025 23:58:06 +0530 Subject: [PATCH 1/8] patch: create default loast reasons --- crm/patches.txt | 3 ++- crm/patches/v1_0/create_default_lost_reasons.py | 5 +++++ frappe-ui | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 crm/patches/v1_0/create_default_lost_reasons.py diff --git a/crm/patches.txt b/crm/patches.txt index 910f0fe1..c038f250 100644 --- a/crm/patches.txt +++ b/crm/patches.txt @@ -14,4 +14,5 @@ crm.patches.v1_0.update_layouts_to_new_format crm.patches.v1_0.move_twilio_agent_to_telephony_agent crm.patches.v1_0.create_default_scripts # 13-06-2025 crm.patches.v1_0.update_deal_status_probabilities -crm.patches.v1_0.update_deal_status_type \ No newline at end of file +crm.patches.v1_0.update_deal_status_type +crm.patches.v1_0.create_default_lost_reasons \ No newline at end of file diff --git a/crm/patches/v1_0/create_default_lost_reasons.py b/crm/patches/v1_0/create_default_lost_reasons.py new file mode 100644 index 00000000..f6e43e11 --- /dev/null +++ b/crm/patches/v1_0/create_default_lost_reasons.py @@ -0,0 +1,5 @@ +from crm.install import add_default_lost_reasons + + +def execute(): + add_default_lost_reasons() diff --git a/frappe-ui b/frappe-ui index b295b54a..136f2715 160000 --- a/frappe-ui +++ b/frappe-ui @@ -1 +1 @@ -Subproject commit b295b54aaa3a2a22f455df819d87433dc6b9ff6a +Subproject commit 136f2715c2bd22b7390a2a02f1849a147d16b191 From 1a90876500afe5f104f8ff7d263cca942b3506f7 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Tue, 19 Aug 2025 00:30:30 +0530 Subject: [PATCH 2/8] refactor: improve layout and structure of quick filter components --- frontend/src/components/ViewControls.vue | 80 +++++++++++++----------- 1 file changed, 42 insertions(+), 38 deletions(-) diff --git a/frontend/src/components/ViewControls.vue b/frontend/src/components/ViewControls.vue index 36098abf..0a057734 100644 --- a/frontend/src/components/ViewControls.vue +++ b/frontend/src/components/ViewControls.vue @@ -65,55 +65,59 @@ >
- - - - +
+ + + + +
From 1cebc1fed858d3e54bace0e46731e4fd0aff0502 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Tue, 19 Aug 2025 00:40:34 +0530 Subject: [PATCH 3/8] fix: ensure reactive access to document title in Lead component --- frontend/src/pages/Lead.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/Lead.vue b/frontend/src/pages/Lead.vue index 6548bf4d..e8c96f3a 100644 --- a/frontend/src/pages/Lead.vue +++ b/frontend/src/pages/Lead.vue @@ -362,7 +362,7 @@ const breadcrumbs = computed(() => { const title = computed(() => { let t = doctypeMeta['CRM Lead']?.title_field || 'name' - return doc?.[t] || props.leadId + return doc.value?.[t] || props.leadId }) const statuses = computed(() => { From a77bfd2acae6e6973d8a9e85c73b0e163a94ea88 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Tue, 19 Aug 2025 00:58:52 +0530 Subject: [PATCH 4/8] refactor: update layout structure for CRM Deal-Data Fields to show products table --- crm/install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crm/install.py b/crm/install.py index 473ba5f6..cced779d 100644 --- a/crm/install.py +++ b/crm/install.py @@ -192,7 +192,7 @@ def add_default_fields_layout(force=False): }, "CRM Deal-Data Fields": { "doctype": "CRM Deal", - "layout": '[{"label": "Details", "name": "details_section", "opened": true, "columns": [{"name": "column_z9XL", "fields": ["organization", "annual_revenue", "next_step"]}, {"name": "column_gM4w", "fields": ["website", "close_date", "deal_owner"]}, {"name": "column_gWmE", "fields": ["territory", "probability"]}]}]', + "layout": '[{"name":"first_tab","sections":[{"label":"Details","name":"details_section","opened":true,"columns":[{"name":"column_z9XL","fields":["organization","annual_revenue","next_step"]},{"name":"column_gM4w","fields":["website","closed_date","deal_owner"]},{"name":"column_gWmE","fields":["territory","probability"]}]},{"label":"Products","name":"section_jHhQ","opened":true,"columns":[{"name":"column_xiNF","fields":["products"]}],"editingLabel":false,"hideLabel":true},{"label":"New Section","name":"section_WNOQ","opened":true,"columns":[{"name":"column_ziBW","fields":["total"]},{"label":"","name":"column_wuwA","fields":["net_total"]}],"hideBorder":true,"hideLabel":true}]}]', }, } From 3a756630f3699c3f86aa74eff174b9a7e8a21623 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Tue, 19 Aug 2025 00:59:24 +0530 Subject: [PATCH 5/8] fix: grid settings/edit-row button alignment --- frontend/src/components/Controls/Grid.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/Controls/Grid.vue b/frontend/src/components/Controls/Grid.vue index 0eda551e..17795432 100644 --- a/frontend/src/components/Controls/Grid.vue +++ b/frontend/src/components/Controls/Grid.vue @@ -52,10 +52,10 @@ >
-
+
-
+