[fixes] setup wizard and domainify for schools;

This commit is contained in:
Rushabh Mehta
2016-07-21 16:01:59 +05:30
parent b0061c9341
commit 20038ad2c9
9 changed files with 510 additions and 116 deletions

View File

@@ -164,5 +164,111 @@ def get_data():
"icon": "octicon octicon-tools",
"type": "module",
"label": _("Maintenance")
},
{
"module_name": "Student",
"color": "#c0392b",
"icon": "octicon octicon-person",
"label": _("Student"),
"link": "List/Student",
"doctype": "Student",
"type": "list"
},
{
"module_name": "Student Group",
"color": "#d59919",
"icon": "octicon octicon-organization",
"label": _("Student Group"),
"link": "List/Student Group",
"doctype": "Student Group",
"type": "list"
},
{
"module_name": "Course Schedule",
"color": "#fd784f",
"icon": "octicon octicon-calendar",
"label": _("Course Schedule"),
"link": "Calendar/Course Schedule",
"doctype": "Course Schedule",
"type": "list"
},
{
"module_name": "Student Attendance",
"color": "#3aacba",
"icon": "octicon octicon-checklist",
"label": _("Student Attendance"),
"link": "List/Student Attendance",
"doctype": "Student Attendance",
"type": "list"
},
{
"module_name": "Course",
"color": "#8e44ad",
"icon": "octicon octicon-book",
"label": _("Course"),
"link": "List/Course",
"doctype": "Course",
"type": "list"
},
{
"module_name": "Program",
"color": "#9b59b6",
"icon": "octicon octicon-repo",
"label": _("Program"),
"link": "List/Program",
"doctype": "Program",
"type": "list"
},
{
"module_name": "Student Applicant",
"color": "#4d927f",
"icon": "octicon octicon-clippy",
"label": _("Student Applicant"),
"link": "List/Student Applicant",
"doctype": "Student Applicant",
"type": "list"
},
{
"module_name": "Examination",
"color": "#8a70be",
"icon": "icon-file-text-alt",
"label": _("Examination"),
"link": "List/Examination",
"doctype": "Examination",
"type": "list"
},
{
"module_name": "Fees",
"color": "#83C21E",
"icon": "icon-money",
"label": _("Fees"),
"link": "List/Fees",
"doctype": "Fees",
"type": "list"
},
{
"module_name": "Instructor",
"color": "#a99e4c",
"icon": "octicon octicon-broadcast",
"label": _("Instructor"),
"link": "List/Instructor",
"doctype": "Instructor",
"type": "list"
},
{
"module_name": "Room",
"color": "#f22683",
"icon": "icon-map-marker",
"label": _("Room"),
"link": "List/Room",
"doctype": "Examination",
"type": "list"
},
{
"module_name": "Schools",
"color": "#DE2B37",
"icon": "octicon octicon-mortar-board",
"type": "module",
"label": _("Schools")
}
]

110
erpnext/config/schools.py Normal file
View File

@@ -0,0 +1,110 @@
from __future__ import unicode_literals
from frappe import _
def get_data():
return [
{
"label": _("Student"),
"items": [
{
"type": "doctype",
"name": "Student"
},
{
"type": "doctype",
"name": "Student Group"
},
{
"type": "doctype",
"name": "Student Applicant"
},
{
"type": "doctype",
"name": "Program Enrollment"
},
{
"type": "doctype",
"name": "Program Enrollment Tool"
},
{
"type": "doctype",
"name": "Student Group Creation Tool"
}
]
},
{
"label": _("Schedule"),
"items": [
{
"type": "doctype",
"name": "Course Schedule",
"route": "Calendar/Course Schedule"
},
{
"type": "doctype",
"name": "Student Attendance"
},
{
"type": "doctype",
"name": "Scheduling Tool"
},
{
"type": "doctype",
"name": "Examination"
}
]
},
{
"label": _("Fees"),
"items": [
{
"type": "doctype",
"name": "Fees"
},
{
"type": "doctype",
"name": "Fee Structure"
},
{
"type": "doctype",
"name": "Fee Category"
},
{
"type": "report",
"name": "Student Fee Collection",
"doctype": "Fees",
"is_query_report": True
}
]
},
{
"label": _("Setup"),
"items": [
{
"type": "doctype",
"name": "Course"
},
{
"type": "doctype",
"name": "Program"
},
{
"type": "doctype",
"name": "Instructor"
},
{
"type": "doctype",
"name": "Room"
},
{
"type": "doctype",
"name": "Academic Term"
},
{
"type": "doctype",
"name": "Academic Year"
}
]
},
]