Skip to content

Commit

Permalink
feat:Create Doctype Smith Category
Browse files Browse the repository at this point in the history
  • Loading branch information
G-eethu committed Oct 26, 2023
1 parent e6c4762 commit dc88d8b
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 0 deletions.
Empty file.
8 changes: 8 additions & 0 deletions aumms/aumms/doctype/smith_category/smith_category.js
Original file line number Diff line number Diff line change
@@ -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) {

// }
});
46 changes: 46 additions & 0 deletions aumms/aumms/doctype/smith_category/smith_category.json
Original file line number Diff line number Diff line change
@@ -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": []
}
8 changes: 8 additions & 0 deletions aumms/aumms/doctype/smith_category/smith_category.py
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions aumms/aumms/doctype/smith_category/test_smith_category.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit dc88d8b

Please sign in to comment.