From eb66f8ace5987d41eb308b56a1be84e6647ee9e0 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Sat, 26 Aug 2023 12:07:57 +0530 Subject: [PATCH] fix: added crm note doctype --- crm/crm/doctype/crm_note/__init__.py | 0 crm/crm/doctype/crm_note/crm_note.js | 8 ++++ crm/crm/doctype/crm_note/crm_note.json | 55 +++++++++++++++++++++++ crm/crm/doctype/crm_note/crm_note.py | 9 ++++ crm/crm/doctype/crm_note/test_crm_note.py | 9 ++++ 5 files changed, 81 insertions(+) create mode 100644 crm/crm/doctype/crm_note/__init__.py create mode 100644 crm/crm/doctype/crm_note/crm_note.js create mode 100644 crm/crm/doctype/crm_note/crm_note.json create mode 100644 crm/crm/doctype/crm_note/crm_note.py create mode 100644 crm/crm/doctype/crm_note/test_crm_note.py diff --git a/crm/crm/doctype/crm_note/__init__.py b/crm/crm/doctype/crm_note/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/crm/crm/doctype/crm_note/crm_note.js b/crm/crm/doctype/crm_note/crm_note.js new file mode 100644 index 00000000..48bab216 --- /dev/null +++ b/crm/crm/doctype/crm_note/crm_note.js @@ -0,0 +1,8 @@ +// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors +// For license information, please see license.txt + +// frappe.ui.form.on("CRM Note", { +// refresh(frm) { + +// }, +// }); diff --git a/crm/crm/doctype/crm_note/crm_note.json b/crm/crm/doctype/crm_note/crm_note.json new file mode 100644 index 00000000..1e19b4c5 --- /dev/null +++ b/crm/crm/doctype/crm_note/crm_note.json @@ -0,0 +1,55 @@ +{ + "actions": [], + "allow_rename": 1, + "creation": "2023-08-26 12:04:00.759437", + "default_view": "List", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "title", + "content" + ], + "fields": [ + { + "fieldname": "title", + "fieldtype": "Data", + "in_list_view": 1, + "in_standard_filter": 1, + "label": "Title" + }, + { + "fieldname": "content", + "fieldtype": "Text Editor", + "in_list_view": 1, + "in_standard_filter": 1, + "label": "Content" + } + ], + "index_web_pages_for_search": 1, + "links": [], + "modified": "2023-08-26 12:06:59.674655", + "modified_by": "Administrator", + "module": "CRM", + "name": "CRM Note", + "owner": "Administrator", + "permissions": [ + { + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "System Manager", + "share": 1, + "write": 1 + } + ], + "sort_field": "modified", + "sort_order": "DESC", + "states": [], + "title_field": "title", + "track_changes": 1 +} \ No newline at end of file diff --git a/crm/crm/doctype/crm_note/crm_note.py b/crm/crm/doctype/crm_note/crm_note.py new file mode 100644 index 00000000..b042398a --- /dev/null +++ b/crm/crm/doctype/crm_note/crm_note.py @@ -0,0 +1,9 @@ +# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors +# For license information, please see license.txt + +# import frappe +from frappe.model.document import Document + + +class CRMNote(Document): + pass diff --git a/crm/crm/doctype/crm_note/test_crm_note.py b/crm/crm/doctype/crm_note/test_crm_note.py new file mode 100644 index 00000000..af69a47d --- /dev/null +++ b/crm/crm/doctype/crm_note/test_crm_note.py @@ -0,0 +1,9 @@ +# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and Contributors +# See license.txt + +# import frappe +from frappe.tests.utils import FrappeTestCase + + +class TestCRMNote(FrappeTestCase): + pass