mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-04 22:18:27 +00:00
fix: show custom button for saved projects (#24730)
* fix: show custom button for saved projects * fix: slider
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user