From dc88d8beaa2bea78750206fa7847051f33fe2aa4 Mon Sep 17 00:00:00 2001 From: Geethu k Date: Thu, 26 Oct 2023 11:33:25 +0530 Subject: [PATCH] feat:Create Doctype Smith Category --- .../aumms/doctype/smith_category/__init__.py | 0 .../doctype/smith_category/smith_category.js | 8 ++++ .../smith_category/smith_category.json | 46 +++++++++++++++++++ .../doctype/smith_category/smith_category.py | 8 ++++ .../smith_category/test_smith_category.py | 9 ++++ 5 files changed, 71 insertions(+) create mode 100644 aumms/aumms/doctype/smith_category/__init__.py create mode 100644 aumms/aumms/doctype/smith_category/smith_category.js create mode 100644 aumms/aumms/doctype/smith_category/smith_category.json create mode 100644 aumms/aumms/doctype/smith_category/smith_category.py create mode 100644 aumms/aumms/doctype/smith_category/test_smith_category.py diff --git a/aumms/aumms/doctype/smith_category/__init__.py b/aumms/aumms/doctype/smith_category/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/aumms/aumms/doctype/smith_category/smith_category.js b/aumms/aumms/doctype/smith_category/smith_category.js new file mode 100644 index 00000000..2127673a --- /dev/null +++ b/aumms/aumms/doctype/smith_category/smith_category.js @@ -0,0 +1,8 @@ +// Copyright (c) 2023, efeone and contributors +// For license information, please see license.txt + +frappe.ui.form.on('Smith Category', { + // refresh: function(frm) { + + // } +}); diff --git a/aumms/aumms/doctype/smith_category/smith_category.json b/aumms/aumms/doctype/smith_category/smith_category.json new file mode 100644 index 00000000..7bc690bb --- /dev/null +++ b/aumms/aumms/doctype/smith_category/smith_category.json @@ -0,0 +1,46 @@ +{ + "actions": [], + "allow_rename": 1, + "autoname": "field:categories", + "creation": "2023-10-26 10:22:22.572254", + "default_view": "List", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "categories" + ], + "fields": [ + { + "fieldname": "categories", + "fieldtype": "Data", + "label": "Categories", + "unique": 1 + } + ], + "index_web_pages_for_search": 1, + "links": [], + "modified": "2023-10-26 11:20:55.759872", + "modified_by": "Administrator", + "module": "AuMMS", + "name": "Smith Category", + "naming_rule": "By fieldname", + "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": [] +} \ No newline at end of file diff --git a/aumms/aumms/doctype/smith_category/smith_category.py b/aumms/aumms/doctype/smith_category/smith_category.py new file mode 100644 index 00000000..e0b8ff6f --- /dev/null +++ b/aumms/aumms/doctype/smith_category/smith_category.py @@ -0,0 +1,8 @@ +# Copyright (c) 2023, efeone and contributors +# For license information, please see license.txt + +# import frappe +from frappe.model.document import Document + +class SmithCategory(Document): + pass diff --git a/aumms/aumms/doctype/smith_category/test_smith_category.py b/aumms/aumms/doctype/smith_category/test_smith_category.py new file mode 100644 index 00000000..73546146 --- /dev/null +++ b/aumms/aumms/doctype/smith_category/test_smith_category.py @@ -0,0 +1,9 @@ +# Copyright (c) 2023, efeone and Contributors +# See license.txt + +# import frappe +from frappe.tests.utils import FrappeTestCase + + +class TestSmithCategory(FrappeTestCase): + pass