Hello everyone, I need help on how to disable the start and finish button control in the work order
because, there is a user who needs to see the start and finish buttons but should not be able to control them. He only enters the quantities and records the work order.
That for, you have to apply the client script.
Please check it.
frappe.ui.form.on('Work Order', {
refresh: function(frm) {
if (frappe.session.user == "user1@testmai.com") {
frm.remove_custom_button("Start");
frm.remove_custom_button("Finish");
}
}
});
Please set your userid in the script, if there then the button will not appear.
Thanks.