From 669f26cdf2d73743bf147a9e44e616cb45ef4c14 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Thu, 25 Jan 2024 01:18:17 +0530 Subject: [PATCH] fix: added contact email dropdown in multiselectinput using search_link --- crm/install.py | 11 ++ .../components/Controls/MultiselectInput.vue | 178 ++++++++++++++++-- 2 files changed, 174 insertions(+), 15 deletions(-) diff --git a/crm/install.py b/crm/install.py index 51468333..ff8a914d 100644 --- a/crm/install.py +++ b/crm/install.py @@ -11,6 +11,7 @@ def after_install(): add_default_lead_statuses() add_default_deal_statuses() add_default_communication_statuses() + add_property_setter() frappe.db.commit() def add_default_lead_statuses(): @@ -103,3 +104,13 @@ def add_default_communication_statuses(): doc = frappe.new_doc("CRM Communication Status") doc.status = status doc.insert() + +def add_property_setter(): + if not frappe.db.exists("Property Setter", {"name": "Contact-main-search_fields"}): + doc = frappe.new_doc("Property Setter") + doc.doctype_or_field = "DocType" + doc.doc_type = "Contact" + doc.property = "search_fields" + doc.property_type = "Data" + doc.value = "email_id" + doc.insert() \ No newline at end of file diff --git a/frontend/src/components/Controls/MultiselectInput.vue b/frontend/src/components/Controls/MultiselectInput.vue index 466027f5..139672f3 100644 --- a/frontend/src/components/Controls/MultiselectInput.vue +++ b/frontend/src/components/Controls/MultiselectInput.vue @@ -19,20 +19,84 @@ /> - +
+ + + + + + +