From 6c9d49bf8c33c5a6d549cdf0f24ff16bababbc47 Mon Sep 17 00:00:00 2001 From: pateljannat Date: Wed, 11 Aug 2021 11:14:40 +0530 Subject: [PATCH] discussion doctypes --- .../doctype/discussion_message/__init__.py | 0 .../discussion_message/discussion_message.js | 8 +++ .../discussion_message.json | 48 ++++++++++++++++ .../discussion_message/discussion_message.py | 8 +++ .../test_discussion_message.py | 8 +++ .../doctype/discussion_thread/__init__.py | 0 .../discussion_thread/discussion_thread.js | 8 +++ .../discussion_thread/discussion_thread.json | 55 +++++++++++++++++++ .../discussion_thread/discussion_thread.py | 8 +++ .../test_discussion_thread.py | 8 +++ 10 files changed, 151 insertions(+) create mode 100644 community/community/doctype/discussion_message/__init__.py create mode 100644 community/community/doctype/discussion_message/discussion_message.js create mode 100644 community/community/doctype/discussion_message/discussion_message.json create mode 100644 community/community/doctype/discussion_message/discussion_message.py create mode 100644 community/community/doctype/discussion_message/test_discussion_message.py create mode 100644 community/community/doctype/discussion_thread/__init__.py create mode 100644 community/community/doctype/discussion_thread/discussion_thread.js create mode 100644 community/community/doctype/discussion_thread/discussion_thread.json create mode 100644 community/community/doctype/discussion_thread/discussion_thread.py create mode 100644 community/community/doctype/discussion_thread/test_discussion_thread.py diff --git a/community/community/doctype/discussion_message/__init__.py b/community/community/doctype/discussion_message/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/community/community/doctype/discussion_message/discussion_message.js b/community/community/doctype/discussion_message/discussion_message.js new file mode 100644 index 00000000..6044a179 --- /dev/null +++ b/community/community/doctype/discussion_message/discussion_message.js @@ -0,0 +1,8 @@ +// Copyright (c) 2021, FOSS United and contributors +// For license information, please see license.txt + +frappe.ui.form.on('Discussion Message', { + // refresh: function(frm) { + + // } +}); diff --git a/community/community/doctype/discussion_message/discussion_message.json b/community/community/doctype/discussion_message/discussion_message.json new file mode 100644 index 00000000..c335fca2 --- /dev/null +++ b/community/community/doctype/discussion_message/discussion_message.json @@ -0,0 +1,48 @@ +{ + "actions": [], + "creation": "2021-08-11 10:59:38.597046", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "message", + "thread" + ], + "fields": [ + { + "fieldname": "message", + "fieldtype": "Long Text", + "label": "Message" + }, + { + "fieldname": "thread", + "fieldtype": "Link", + "label": "Thread", + "options": "Discussion Thread" + } + ], + "index_web_pages_for_search": 1, + "links": [], + "modified": "2021-08-11 10:59:38.597046", + "modified_by": "Administrator", + "module": "Community", + "name": "Discussion Message", + "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", + "track_changes": 1 +} \ No newline at end of file diff --git a/community/community/doctype/discussion_message/discussion_message.py b/community/community/doctype/discussion_message/discussion_message.py new file mode 100644 index 00000000..2ca8893b --- /dev/null +++ b/community/community/doctype/discussion_message/discussion_message.py @@ -0,0 +1,8 @@ +# Copyright (c) 2021, FOSS United and contributors +# For license information, please see license.txt + +# import frappe +from frappe.model.document import Document + +class DiscussionMessage(Document): + pass diff --git a/community/community/doctype/discussion_message/test_discussion_message.py b/community/community/doctype/discussion_message/test_discussion_message.py new file mode 100644 index 00000000..7d7145a8 --- /dev/null +++ b/community/community/doctype/discussion_message/test_discussion_message.py @@ -0,0 +1,8 @@ +# Copyright (c) 2021, FOSS United and Contributors +# See license.txt + +# import frappe +import unittest + +class TestDiscussionMessage(unittest.TestCase): + pass diff --git a/community/community/doctype/discussion_thread/__init__.py b/community/community/doctype/discussion_thread/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/community/community/doctype/discussion_thread/discussion_thread.js b/community/community/doctype/discussion_thread/discussion_thread.js new file mode 100644 index 00000000..93fdaaa4 --- /dev/null +++ b/community/community/doctype/discussion_thread/discussion_thread.js @@ -0,0 +1,8 @@ +// Copyright (c) 2021, FOSS United and contributors +// For license information, please see license.txt + +frappe.ui.form.on('Discussion Thread', { + // refresh: function(frm) { + + // } +}); diff --git a/community/community/doctype/discussion_thread/discussion_thread.json b/community/community/doctype/discussion_thread/discussion_thread.json new file mode 100644 index 00000000..3ceeba8b --- /dev/null +++ b/community/community/doctype/discussion_thread/discussion_thread.json @@ -0,0 +1,55 @@ +{ + "actions": [], + "creation": "2021-08-11 10:55:29.341674", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "title", + "reference_doctype", + "reference_docname" + ], + "fields": [ + { + "fieldname": "title", + "fieldtype": "Data", + "label": "Title" + }, + { + "fieldname": "reference_doctype", + "fieldtype": "Link", + "label": "Reference Doctype", + "options": "DocType" + }, + { + "fieldname": "reference_docname", + "fieldtype": "Dynamic Link", + "label": "Reference Docname", + "options": "reference_doctype" + } + ], + "index_web_pages_for_search": 1, + "links": [], + "modified": "2021-08-11 10:55:29.341674", + "modified_by": "Administrator", + "module": "Community", + "name": "Discussion Thread", + "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", + "track_changes": 1 +} \ No newline at end of file diff --git a/community/community/doctype/discussion_thread/discussion_thread.py b/community/community/doctype/discussion_thread/discussion_thread.py new file mode 100644 index 00000000..cd44880c --- /dev/null +++ b/community/community/doctype/discussion_thread/discussion_thread.py @@ -0,0 +1,8 @@ +# Copyright (c) 2021, FOSS United and contributors +# For license information, please see license.txt + +# import frappe +from frappe.model.document import Document + +class DiscussionThread(Document): + pass diff --git a/community/community/doctype/discussion_thread/test_discussion_thread.py b/community/community/doctype/discussion_thread/test_discussion_thread.py new file mode 100644 index 00000000..b692f56e --- /dev/null +++ b/community/community/doctype/discussion_thread/test_discussion_thread.py @@ -0,0 +1,8 @@ +# Copyright (c) 2021, FOSS United and Contributors +# See license.txt + +# import frappe +import unittest + +class TestDiscussionThread(unittest.TestCase): + pass