Hi…Experts ERPNext hope you are fine all.
Kindly update me how can we hide Company Option- Delete Transactions from all users (Administrator is allowed only).
Thanks
Hi…Experts ERPNext hope you are fine all.
Kindly update me how can we hide Company Option- Delete Transactions from all users (Administrator is allowed only).
Thanks
Hi @Naveed1,
Please apply the client script for company doctype.
frappe.ui.form.on('Company', {
refresh: function(frm) {
if (frappe.session.user != "Administrator") {
setTimeout(() => {
frm.remove_custom_button('Delete Transactions', 'Manage');
}, 10);
}
}
});
reload and check it.