-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from mohaltheeb/develop
feat(core): Add a Doctypes for Academic Program
- Loading branch information
Showing
36 changed files
with
750 additions
and
152 deletions.
There are no files selected for viewing
125 changes: 55 additions & 70 deletions
125
academia/academia/doctype/academic_program/academic_program.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Copyright (c) 2024, SanU and contributors | ||
// For license information, please see license.txt | ||
|
||
// frappe.ui.form.on("Academic Term", { | ||
// refresh(frm) { | ||
|
||
// }, | ||
// }); |
77 changes: 77 additions & 0 deletions
77
academia/academia/doctype/academic_term/academic_term.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{ | ||
"actions": [], | ||
"allow_rename": 1, | ||
"autoname": "field:term_name", | ||
"creation": "2024-04-23 21:32:12.966215", | ||
"doctype": "DocType", | ||
"engine": "InnoDB", | ||
"field_order": [ | ||
"term_name", | ||
"faculty", | ||
"disabled", | ||
"academic_year", | ||
"auto_created" | ||
], | ||
"fields": [ | ||
{ | ||
"fieldname": "term_name", | ||
"fieldtype": "Data", | ||
"in_list_view": 1, | ||
"label": "Term Name", | ||
"reqd": 1, | ||
"unique": 1 | ||
}, | ||
{ | ||
"fieldname": "faculty", | ||
"fieldtype": "Link", | ||
"label": "Faculty", | ||
"options": "Faculty", | ||
"reqd": 1 | ||
}, | ||
{ | ||
"default": "0", | ||
"fieldname": "disabled", | ||
"fieldtype": "Check", | ||
"label": "Disabled" | ||
}, | ||
{ | ||
"fieldname": "academic_year", | ||
"fieldtype": "Link", | ||
"in_list_view": 1, | ||
"label": "Academic Year", | ||
"options": "Academic Year", | ||
"reqd": 1 | ||
}, | ||
{ | ||
"default": "0", | ||
"fieldname": "auto_created", | ||
"fieldtype": "Check", | ||
"label": "Auto Created" | ||
} | ||
], | ||
"index_web_pages_for_search": 1, | ||
"links": [], | ||
"modified": "2024-04-23 22:07:08.260080", | ||
"modified_by": "Administrator", | ||
"module": "Academia", | ||
"name": "Academic Term", | ||
"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": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Copyright (c) 2024, SanU and contributors | ||
# For license information, please see license.txt | ||
|
||
# import frappe | ||
from frappe.model.document import Document | ||
|
||
|
||
class AcademicTerm(Document): | ||
pass |
9 changes: 9 additions & 0 deletions
9
academia/academia/doctype/academic_term/test_academic_term.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Copyright (c) 2024, SanU and Contributors | ||
# See license.txt | ||
|
||
# import frappe | ||
from frappe.tests.utils import FrappeTestCase | ||
|
||
|
||
class TestAcademicTerm(FrappeTestCase): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"actions": [], | ||
"allow_rename": 1, | ||
"autoname": "field:hour_type", | ||
"creation": "2024-04-23 21:43:23.728299", | ||
"doctype": "DocType", | ||
"editable_grid": 1, | ||
"engine": "InnoDB", | ||
"field_order": [ | ||
"hour_type", | ||
"course_needed", | ||
"lab_type" | ||
], | ||
"fields": [ | ||
{ | ||
"fieldname": "hour_type", | ||
"fieldtype": "Link", | ||
"in_list_view": 1, | ||
"label": "Hour Type", | ||
"options": "Hour Type", | ||
"reqd": 1, | ||
"unique": 1 | ||
}, | ||
{ | ||
"fieldname": "course_needed", | ||
"fieldtype": "Select", | ||
"in_list_view": 1, | ||
"label": "Course Needed", | ||
"options": "\nClass\nLab" | ||
}, | ||
{ | ||
"depends_on": "eval:doc.course_needed == \"Lab\";", | ||
"fieldname": "lab_type", | ||
"fieldtype": "Link", | ||
"label": "Lab Type", | ||
"mandatory_depends_on": "eval:doc.course_needed == \"Lab\";", | ||
"options": "lab", | ||
"read_only_depends_on": "eval:doc.course_needed == \"Class\";" | ||
} | ||
], | ||
"index_web_pages_for_search": 1, | ||
"istable": 1, | ||
"links": [], | ||
"modified": "2024-04-23 22:04:41.518934", | ||
"modified_by": "Administrator", | ||
"module": "Academia", | ||
"name": "Course Hours", | ||
"naming_rule": "By fieldname", | ||
"owner": "Administrator", | ||
"permissions": [], | ||
"sort_field": "modified", | ||
"sort_order": "DESC", | ||
"states": [] | ||
} |
Oops, something went wrong.