change to link of gantt in project (#6469)
This commit is contained in:
parent
70b7d3280b
commit
a4d19b4c03
@ -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");
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user