fix: show custom button for saved projects (#24732)

* fix: show custom button for saved projects

* fix: slider
This commit is contained in:
Afshan
2021-02-24 18:13:29 +05:30
committed by GitHub
parent 80d9576bb9
commit 9272ea838f

View File

@@ -75,7 +75,6 @@ frappe.ui.form.on("Project", {
frm.add_custom_button(__('Cancelled'), () => { frm.add_custom_button(__('Cancelled'), () => {
frm.events.set_status(frm, 'Cancelled'); frm.events.set_status(frm, 'Cancelled');
}, __('Set Status')); }, __('Set Status'));
}
if (frappe.model.can_read("Task")) { if (frappe.model.can_read("Task")) {
frm.add_custom_button(__("Gantt Chart"), function () { frm.add_custom_button(__("Gantt Chart"), function () {
@@ -93,6 +92,7 @@ frappe.ui.form.on("Project", {
}); });
}); });
} }
}
}, },
create_duplicate: function(frm) { create_duplicate: function(frm) {