From 50557a9198c44f371e603dc4a9f85a48f51ab256 Mon Sep 17 00:00:00 2001 From: Geethu k Date: Thu, 26 Oct 2023 12:00:23 +0530 Subject: [PATCH 1/2] feat:Create Doctype Smith Grade --- aumms/aumms/doctype/smith_grade/__init__.py | 0 .../aumms/doctype/smith_grade/smith_grade.js | 8 ++++ .../doctype/smith_grade/smith_grade.json | 46 +++++++++++++++++++ .../aumms/doctype/smith_grade/smith_grade.py | 8 ++++ .../doctype/smith_grade/test_smith_grade.py | 9 ++++ 5 files changed, 71 insertions(+) create mode 100644 aumms/aumms/doctype/smith_grade/__init__.py create mode 100644 aumms/aumms/doctype/smith_grade/smith_grade.js create mode 100644 aumms/aumms/doctype/smith_grade/smith_grade.json create mode 100644 aumms/aumms/doctype/smith_grade/smith_grade.py create mode 100644 aumms/aumms/doctype/smith_grade/test_smith_grade.py diff --git a/aumms/aumms/doctype/smith_grade/__init__.py b/aumms/aumms/doctype/smith_grade/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/aumms/aumms/doctype/smith_grade/smith_grade.js b/aumms/aumms/doctype/smith_grade/smith_grade.js new file mode 100644 index 00000000..7d9ee61f --- /dev/null +++ b/aumms/aumms/doctype/smith_grade/smith_grade.js @@ -0,0 +1,8 @@ +// Copyright (c) 2023, efeone and contributors +// For license information, please see license.txt + +frappe.ui.form.on('Smith Grade', { + // refresh: function(frm) { + + // } +}); diff --git a/aumms/aumms/doctype/smith_grade/smith_grade.json b/aumms/aumms/doctype/smith_grade/smith_grade.json new file mode 100644 index 00000000..ec99348e --- /dev/null +++ b/aumms/aumms/doctype/smith_grade/smith_grade.json @@ -0,0 +1,46 @@ +{ + "actions": [], + "allow_rename": 1, + "autoname": "field:smith_grade", + "creation": "2023-10-26 10:58:54.325396", + "default_view": "List", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "smith_grade" + ], + "fields": [ + { + "fieldname": "smith_grade", + "fieldtype": "Data", + "label": "Smith Grade", + "unique": 1 + } + ], + "index_web_pages_for_search": 1, + "links": [], + "modified": "2023-10-26 10:59:20.366850", + "modified_by": "Administrator", + "module": "AuMMS", + "name": "Smith Grade", + "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_grade/smith_grade.py b/aumms/aumms/doctype/smith_grade/smith_grade.py new file mode 100644 index 00000000..8347a96f --- /dev/null +++ b/aumms/aumms/doctype/smith_grade/smith_grade.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 SmithGrade(Document): + pass diff --git a/aumms/aumms/doctype/smith_grade/test_smith_grade.py b/aumms/aumms/doctype/smith_grade/test_smith_grade.py new file mode 100644 index 00000000..53ca3898 --- /dev/null +++ b/aumms/aumms/doctype/smith_grade/test_smith_grade.py @@ -0,0 +1,9 @@ +# Copyright (c) 2023, efeone and Contributors +# See license.txt + +# import frappe +from frappe.tests.utils import FrappeTestCase + + +class TestSmithGrade(FrappeTestCase): + pass From ffaeb290d6f718033983d58f7509cd73447e8292 Mon Sep 17 00:00:00 2001 From: Geethu k Date: Thu, 26 Oct 2023 12:22:33 +0530 Subject: [PATCH 2/2] feat:modified Smith Doctype --- aumms/aumms/doctype/smith/smith.json | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/aumms/aumms/doctype/smith/smith.json b/aumms/aumms/doctype/smith/smith.json index 973994bb..21d9c149 100644 --- a/aumms/aumms/doctype/smith/smith.json +++ b/aumms/aumms/doctype/smith/smith.json @@ -13,10 +13,12 @@ "supplier", "supplier_name", "employee_name", + "smith_grade", "column_break_mhz6m", "warehouse", "department", "head_of_smith", + "category", "section_break_9mmii", "hourly_rate" ], @@ -87,11 +89,23 @@ "fieldname": "hourly_rate", "fieldtype": "Data", "label": "Hourly Rate" + }, + { + "fieldname": "category", + "fieldtype": "Link", + "label": "Category", + "options": "Smith Category" + }, + { + "fieldname": "smith_grade", + "fieldtype": "Link", + "label": "Smith Grade", + "options": "Smith Grade" } ], "index_web_pages_for_search": 1, "links": [], - "modified": "2023-10-24 09:54:51.116100", + "modified": "2023-10-26 12:11:32.737297", "modified_by": "Administrator", "module": "AuMMS", "name": "Smith",