Calender view fix for course schedule

This commit is contained in:
Manas Solanki 2017-04-17 11:52:35 +05:30 committed by Nabin Hait
parent 54c4240d9c
commit ae30026005
3 changed files with 1 additions and 28 deletions

View File

@ -106,7 +106,7 @@ def get_data():
{
"type": "doctype",
"name": "Course Schedule",
"route": "Calendar/Course Schedule"
"route": "List/Course Schedule/Calendar"
},
{
"type": "doctype",

View File

@ -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");
});
}

View File

@ -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");
});
}