I can’t seem to be able to hide this section “stats” from basic users who simply need to complete tasks on a project and need not see turnover figures with customers.
Hi @Nyikal,
If you want to hide the starts section from user1 and user2 then please apply the client script.
frappe.ui.form.on('Customer', {
refresh: function(frm) {
if (frappe.session.user == "user1@testmail.com" || frappe.session.user == "user2@gmail.com") {
$('.row.form-dashboard-section.form-stats').hide();
}
}
});
I hope this helps.
Thank You!
1 Like