fix: adding dashboard in course and assessment plan (#21889)
* Adding dashboards * adding dashboard in course and assessment plan
This commit is contained in:
parent
48e4abf43f
commit
0a147d5c76
@ -0,0 +1,17 @@
|
||||
# Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and Contributors
|
||||
# License: GNU General Public License v3. See license.txt
|
||||
from __future__ import unicode_literals
|
||||
from frappe import _
|
||||
|
||||
def get_data():
|
||||
return {
|
||||
'fieldname': 'assessment_plan',
|
||||
'non_standard_fieldnames': {
|
||||
},
|
||||
'transactions': [
|
||||
{
|
||||
'label': _('Assessment'),
|
||||
'items': ['Assessment Result']
|
||||
}
|
||||
]
|
||||
}
|
25
erpnext/education/doctype/course/course_dashboard.py
Normal file
25
erpnext/education/doctype/course/course_dashboard.py
Normal file
@ -0,0 +1,25 @@
|
||||
# Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and Contributors
|
||||
# License: GNU General Public License v3. See license.txt
|
||||
from __future__ import unicode_literals
|
||||
from frappe import _
|
||||
|
||||
def get_data():
|
||||
return {
|
||||
'fieldname': 'course',
|
||||
'non_standard_fieldnames': {
|
||||
},
|
||||
'transactions': [
|
||||
{
|
||||
'label': _('Course'),
|
||||
'items': ['Course Enrollment', 'Course Schedule']
|
||||
},
|
||||
{
|
||||
'label': _('Student'),
|
||||
'items': ['Student Group']
|
||||
},
|
||||
{
|
||||
'label': _('Assessment'),
|
||||
'items': ['Assessment Plan']
|
||||
},
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user