From b910045b252a898cf3df2df45d51a49e70148bc5 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Thu, 25 Apr 2024 14:21:21 +0530 Subject: [PATCH] refactor: made crm notification doctype generic --- .../crm_notification/crm_notification.json | 47 ++++++++++++++++--- 1 file changed, 41 insertions(+), 6 deletions(-) diff --git a/crm/fcrm/doctype/crm_notification/crm_notification.json b/crm/fcrm/doctype/crm_notification/crm_notification.json index 7b9cee2e..72515feb 100644 --- a/crm/fcrm/doctype/crm_notification/crm_notification.json +++ b/crm/fcrm/doctype/crm_notification/crm_notification.json @@ -5,14 +5,20 @@ "doctype": "DocType", "engine": "InnoDB", "field_order": [ + "notification_text", + "section_break_hace", "from_user", "type", - "reference_doctype", - "reference_name", "column_break_dduu", "to_user", - "comment", "read", + "section_break_pbvx", + "reference_doctype", + "reference_name", + "column_break_eant", + "notification_type_doctype", + "notification_type_doc", + "comment", "section_break_vpwa", "message" ], @@ -28,7 +34,7 @@ "fieldtype": "Select", "in_list_view": 1, "label": "Type", - "options": "Mention", + "options": "Mention\nWhatsApp", "reqd": 1 }, { @@ -46,8 +52,8 @@ { "fieldname": "comment", "fieldtype": "Link", + "hidden": 1, "label": "Comment", - "link_filters": "[[{\"fieldname\":\"comment\",\"field_option\":\"Comment\"},\"comment_type\",\"=\",\"Comment\"]]", "options": "Comment" }, { @@ -76,11 +82,40 @@ "fieldtype": "Link", "label": "Reference Doctype", "options": "DocType" + }, + { + "fieldname": "section_break_pbvx", + "fieldtype": "Section Break" + }, + { + "fieldname": "column_break_eant", + "fieldtype": "Column Break" + }, + { + "fieldname": "notification_type_doctype", + "fieldtype": "Link", + "label": "Notification Type Doctype", + "options": "DocType" + }, + { + "fieldname": "notification_type_doc", + "fieldtype": "Dynamic Link", + "label": "Notification Type Doc", + "options": "notification_type_doctype" + }, + { + "fieldname": "notification_text", + "fieldtype": "Text", + "label": "Notification Text" + }, + { + "fieldname": "section_break_hace", + "fieldtype": "Section Break" } ], "index_web_pages_for_search": 1, "links": [], - "modified": "2024-01-30 01:04:27.946030", + "modified": "2024-04-25 13:55:23.014268", "modified_by": "Administrator", "module": "FCRM", "name": "CRM Notification",