From f5c21c3d15015ac9bb34a60a523afdd153286a7e Mon Sep 17 00:00:00 2001 From: nidh-eesh Date: Fri, 27 Oct 2023 16:58:43 +0530 Subject: [PATCH 1/2] Added customizations to project template task doctype --- aumms/aumms/custom/project_template_task.json | 178 ++++++++++++++++++ 1 file changed, 178 insertions(+) create mode 100644 aumms/aumms/custom/project_template_task.json diff --git a/aumms/aumms/custom/project_template_task.json b/aumms/aumms/custom/project_template_task.json new file mode 100644 index 00000000..0334f768 --- /dev/null +++ b/aumms/aumms/custom/project_template_task.json @@ -0,0 +1,178 @@ +{ + "custom_fields": [ + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 2, + "creation": "2023-10-20 16:27:45.995737", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Project Template Task", + "fetch_from": "task.type", + "fetch_if_empty": 0, + "fieldname": "custom_task_type", + "fieldtype": "Link", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 3, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 1, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "subject", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Task Type", + "length": 0, + "mandatory_depends_on": null, + "modified": "2023-10-20 16:27:45.995737", + "modified_by": "nidhinmanu07@gmail.com", + "module": null, + "name": "Project Template Task-custom_task_type", + "no_copy": 0, + "non_negative": 0, + "options": "DocType", + "owner": "nidhinmanu07@gmail.com", + "permlevel": 0, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 2, + "creation": "2023-10-21 11:52:49.717440", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Project Template Task", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_assigned_to", + "fieldtype": "Dynamic Link", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 4, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 1, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_task_type", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Assigned To", + "length": 0, + "mandatory_depends_on": null, + "modified": "2023-10-21 11:52:49.717440", + "modified_by": "nidhinmanu07@gmail.com", + "module": null, + "name": "Project Template Task-custom_assigned_to", + "no_copy": 0, + "non_negative": 0, + "options": "custom_task_type", + "owner": "nidhinmanu07@gmail.com", + "permlevel": 0, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + } + ], + "custom_perms": [], + "doctype": "Project Template Task", + "links": [], + "property_setters": [ + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2023-10-21 12:02:58.157047", + "default_value": null, + "doc_type": "Project Template Task", + "docstatus": 0, + "doctype_or_field": "DocType", + "field_name": null, + "idx": 0, + "is_system_generated": 0, + "modified": "2023-10-21 12:02:58.157047", + "modified_by": "nidhinmanu07@gmail.com", + "module": null, + "name": "Project Template Task-main-field_order", + "owner": "nidhinmanu07@gmail.com", + "property": "field_order", + "property_type": "Data", + "row_name": null, + "value": "[\"task\", \"subject\", \"custom_task_type\", \"custom_assigned_to\"]" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2023-10-20 16:15:25.684421", + "default_value": null, + "doc_type": "Project Template Task", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "subject", + "idx": 0, + "is_system_generated": 0, + "modified": "2023-10-20 16:15:25.684421", + "modified_by": "nidhinmanu07@gmail.com", + "module": null, + "name": "Project Template Task-subject-columns", + "owner": "nidhinmanu07@gmail.com", + "property": "columns", + "property_type": "Int", + "row_name": null, + "value": "4" + } + ], + "sync_on_migrate": 0 +} \ No newline at end of file From c5d0c0bdb40774b1eecf821d3fb27124624a4876 Mon Sep 17 00:00:00 2001 From: nidh-eesh Date: Fri, 27 Oct 2023 16:59:15 +0530 Subject: [PATCH 2/2] feat: Created doctype AuMMS Stages --- aumms/aumms/doctype/aumms_stages/__init__.py | 0 .../doctype/aumms_stages/aumms_stages.js | 8 ++ .../doctype/aumms_stages/aumms_stages.json | 96 +++++++++++++++++++ .../doctype/aumms_stages/aumms_stages.py | 8 ++ .../doctype/aumms_stages/test_aumms_stages.py | 9 ++ 5 files changed, 121 insertions(+) create mode 100644 aumms/aumms/doctype/aumms_stages/__init__.py create mode 100644 aumms/aumms/doctype/aumms_stages/aumms_stages.js create mode 100644 aumms/aumms/doctype/aumms_stages/aumms_stages.json create mode 100644 aumms/aumms/doctype/aumms_stages/aumms_stages.py create mode 100644 aumms/aumms/doctype/aumms_stages/test_aumms_stages.py diff --git a/aumms/aumms/doctype/aumms_stages/__init__.py b/aumms/aumms/doctype/aumms_stages/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/aumms/aumms/doctype/aumms_stages/aumms_stages.js b/aumms/aumms/doctype/aumms_stages/aumms_stages.js new file mode 100644 index 00000000..14b6c7c9 --- /dev/null +++ b/aumms/aumms/doctype/aumms_stages/aumms_stages.js @@ -0,0 +1,8 @@ +// Copyright (c) 2023, efeone and contributors +// For license information, please see license.txt + +frappe.ui.form.on('AuMMS Stages', { + // refresh: function(frm) { + + // } +}); diff --git a/aumms/aumms/doctype/aumms_stages/aumms_stages.json b/aumms/aumms/doctype/aumms_stages/aumms_stages.json new file mode 100644 index 00000000..2ec70fcf --- /dev/null +++ b/aumms/aumms/doctype/aumms_stages/aumms_stages.json @@ -0,0 +1,96 @@ +{ + "actions": [], + "allow_rename": 1, + "creation": "2023-10-20 11:30:05.667088", + "default_view": "List", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "stage_name", + "section_break_amohr", + "operation", + "workstation", + "column_break_zqyb8", + "workstation_type", + "column_break_gqxly", + "description", + "task" + ], + "fields": [ + { + "fieldname": "stage_name", + "fieldtype": "Data", + "in_list_view": 1, + "label": "Stage Name", + "reqd": 1 + }, + { + "fieldname": "section_break_amohr", + "fieldtype": "Section Break" + }, + { + "fieldname": "operation", + "fieldtype": "Link", + "label": "Operation", + "options": "Operation", + "unique": 1 + }, + { + "fetch_from": "operation.workstation", + "fieldname": "workstation", + "fieldtype": "Link", + "label": "Workstation", + "options": "Workstation" + }, + { + "fieldname": "column_break_zqyb8", + "fieldtype": "Column Break" + }, + { + "fetch_from": "workstation.workstation_type", + "fieldname": "workstation_type", + "fieldtype": "Data", + "label": "Workstation Type" + }, + { + "fieldname": "column_break_gqxly", + "fieldtype": "Section Break" + }, + { + "fieldname": "description", + "fieldtype": "Small Text", + "label": "Description" + }, + { + "fieldname": "task", + "fieldtype": "Table", + "label": "Tasks", + "options": "Project Template Task" + } + ], + "index_web_pages_for_search": 1, + "links": [], + "modified": "2023-10-27 16:19:11.585950", + "modified_by": "Administrator", + "module": "AuMMS", + "name": "AuMMS Stages", + "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/aumms_stages/aumms_stages.py b/aumms/aumms/doctype/aumms_stages/aumms_stages.py new file mode 100644 index 00000000..f6f5c081 --- /dev/null +++ b/aumms/aumms/doctype/aumms_stages/aumms_stages.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 AuMMSStages(Document): + pass diff --git a/aumms/aumms/doctype/aumms_stages/test_aumms_stages.py b/aumms/aumms/doctype/aumms_stages/test_aumms_stages.py new file mode 100644 index 00000000..c34765c0 --- /dev/null +++ b/aumms/aumms/doctype/aumms_stages/test_aumms_stages.py @@ -0,0 +1,9 @@ +# Copyright (c) 2023, efeone and Contributors +# See license.txt + +# import frappe +from frappe.tests.utils import FrappeTestCase + + +class TestAuMMSStages(FrappeTestCase): + pass