diff --git a/crm/fcrm/doctype/crm_note/crm_note.json b/crm/fcrm/doctype/crm_note/crm_note.json
index f17f84c7..84410026 100644
--- a/crm/fcrm/doctype/crm_note/crm_note.json
+++ b/crm/fcrm/doctype/crm_note/crm_note.json
@@ -9,7 +9,8 @@
"field_order": [
"title",
"content",
- "lead"
+ "reference_doctype",
+ "reference_docname"
],
"fields": [
{
@@ -27,10 +28,17 @@
"label": "Content"
},
{
- "fieldname": "lead",
+ "default": "CRM Lead",
+ "fieldname": "reference_doctype",
"fieldtype": "Link",
- "label": "Lead",
- "options": "CRM Lead"
+ "label": "Reference Document Type",
+ "options": "DocType"
+ },
+ {
+ "fieldname": "reference_docname",
+ "fieldtype": "Dynamic Link",
+ "label": "Reference Doc",
+ "options": "reference_doctype"
}
],
"index_web_pages_for_search": 1,
@@ -40,7 +48,7 @@
"link_fieldname": "note"
}
],
- "modified": "2023-08-28 11:48:42.100802",
+ "modified": "2023-11-07 13:41:11.249515",
"modified_by": "Administrator",
"module": "FCRM",
"name": "CRM Note",
diff --git a/crm/fcrm/doctype/crm_task/crm_task.json b/crm/fcrm/doctype/crm_task/crm_task.json
index cf7dbe52..fa0ce47f 100644
--- a/crm/fcrm/doctype/crm_task/crm_task.json
+++ b/crm/fcrm/doctype/crm_task/crm_task.json
@@ -10,7 +10,8 @@
"title",
"priority",
"start_date",
- "lead",
+ "reference_doctype",
+ "reference_docname",
"column_break_cqua",
"assigned_to",
"status",
@@ -70,15 +71,22 @@
"label": "Description"
},
{
- "fieldname": "lead",
+ "default": "CRM Lead",
+ "fieldname": "reference_doctype",
"fieldtype": "Link",
- "label": "Lead",
- "options": "CRM Lead"
+ "label": "Reference Document Type",
+ "options": "DocType"
+ },
+ {
+ "fieldname": "reference_docname",
+ "fieldtype": "Dynamic Link",
+ "label": "Reference Doc",
+ "options": "reference_doctype"
}
],
"index_web_pages_for_search": 1,
"links": [],
- "modified": "2023-09-28 15:05:27.986420",
+ "modified": "2023-11-07 13:41:18.277998",
"modified_by": "Administrator",
"module": "FCRM",
"name": "CRM Task",
diff --git a/frontend/src/components/Activities.vue b/frontend/src/components/Activities.vue
index 26733157..80b827ec 100644
--- a/frontend/src/components/Activities.vue
+++ b/frontend/src/components/Activities.vue
@@ -592,13 +592,15 @@
v-model="showNoteModal"
v-model:reloadNotes="notes"
:note="note"
- :lead="doc.data?.name"
+ :doctype="doctype"
+ :doc="doc.data?.name"
/>