change to link of gantt in project (#6469)

This commit is contained in:
paurosello 2016-09-27 06:26:17 +02:00 committed by Rushabh Mehta
parent 70b7d3280b
commit a4d19b4c03

View File

@ -43,9 +43,8 @@ frappe.ui.form.on("Project", {
if(frappe.model.can_read("Task")) {
frm.add_custom_button(__("Gantt Chart"), function() {
frappe.route_options = {"project": frm.doc.name,
"start": frm.doc.expected_start_date, "end": frm.doc.expected_end_date};
frappe.set_route("Gantt", "Task");
frappe.route_options = {"project": frm.doc.name};
frappe.set_route("List", "Task", "Gantt");
});
}