Calender view fix for course schedule
This commit is contained in:
parent
54c4240d9c
commit
ae30026005
@ -106,7 +106,7 @@ def get_data():
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Course Schedule",
|
||||
"route": "Calendar/Course Schedule"
|
||||
"route": "List/Course Schedule/Calendar"
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
|
@ -1,30 +1,18 @@
|
||||
frappe.ui.form.on("Course", "refresh", function(frm) {
|
||||
if(!cur_frm.doc.__islocal) {
|
||||
frm.add_custom_button(__("Program"), function() {
|
||||
// frappe.route_options = {
|
||||
// "Program Course.course": frm.doc.name
|
||||
// }
|
||||
frappe.set_route("List", "Program");
|
||||
});
|
||||
|
||||
frm.add_custom_button(__("Student Group"), function() {
|
||||
// frappe.route_options = {
|
||||
// course: frm.doc.name
|
||||
// }
|
||||
frappe.set_route("List", "Student Group");
|
||||
});
|
||||
|
||||
frm.add_custom_button(__("Course Schedule"), function() {
|
||||
// frappe.route_options = {
|
||||
// course: frm.doc.name
|
||||
// }
|
||||
frappe.set_route("List", "Course Schedule");
|
||||
});
|
||||
|
||||
frm.add_custom_button(__("Assessment Plan"), function() {
|
||||
// frappe.route_options = {
|
||||
// course: frm.doc.name
|
||||
// }
|
||||
frappe.set_route("List", "Assessment Plan");
|
||||
});
|
||||
}
|
||||
|
@ -6,37 +6,22 @@ cur_frm.add_fetch('fee_structure', 'total_amount', 'amount');
|
||||
frappe.ui.form.on("Program", "refresh", function(frm) {
|
||||
if(!frm.doc.__islocal) {
|
||||
frm.add_custom_button(__("Student Applicant"), function() {
|
||||
// frappe.route_options = {
|
||||
// program: frm.doc.name
|
||||
// }
|
||||
frappe.set_route("List", "Student Applicant");
|
||||
});
|
||||
|
||||
frm.add_custom_button(__("Program Enrollment"), function() {
|
||||
// frappe.route_options = {
|
||||
// program: frm.doc.name
|
||||
// }
|
||||
frappe.set_route("List", "Program Enrollment");
|
||||
});
|
||||
|
||||
frm.add_custom_button(__("Student Group"), function() {
|
||||
// frappe.route_options = {
|
||||
// program: frm.doc.name
|
||||
// }
|
||||
frappe.set_route("List", "Student Group");
|
||||
});
|
||||
|
||||
frm.add_custom_button(__("Fee Structure"), function() {
|
||||
// frappe.route_options = {
|
||||
// program: frm.doc.name
|
||||
// }
|
||||
frappe.set_route("List", "Fee Structure");
|
||||
});
|
||||
|
||||
frm.add_custom_button(__("Fees"), function() {
|
||||
// frappe.route_options = {
|
||||
// program: frm.doc.name
|
||||
// }
|
||||
frappe.set_route("List", "Fees");
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user