How can i hide it for employees
Via client script, you need to write it whole, and that will hide all the left pane.
Also i suggest to leave it as it will not affect any.
This is a sample script and this script freezes the left side pane, you can use this as an example and modify to hide the left pane,
frappe.ui.form.on('Purchase Invoice', {
onload_post_render: function(frm) {
if (window.innerWidth > 992) {
var targetDiv = $(".col-lg-2.layout-side-section");
targetDiv.css({
position: 'fixed',
zIndex: '1020',
width: '14%'
});
$('.layout-main-section-wrapper').css({
marginLeft: "16.70%"
});
}
}
});
1 Like
You need to check the css and elements carefully.
rest i’m glad it’s working
how could we make it to apply on all doctypes everywhere in the system?
Reference:
1 Like