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

* fix: show custom button for saved projects

* fix: slider
This commit is contained in:
Afshan 2021-02-24 18:13:10 +05:30 committed by GitHub
parent d0baa90b50
commit 6bd2bbc953
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,7 +75,7 @@ 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 +93,9 @@ frappe.ui.form.on("Project", {
}); });
}); });
} }
}
}, },
create_duplicate: function(frm) { create_duplicate: function(frm) {