As the heading,
How can i remove the activity dropdown from projects, we dont use time sheets so the functionality is pointless.
As the heading,
How can i remove the activity dropdown from projects, we dont use time sheets so the functionality is pointless.
Hi @cmdeep,
That for, please apply the client script for Project.
frappe.ui.form.on('Project', {
refresh: function(frm) {
$('.row.form-dashboard-section.form-heatmap').hide();
}
});
Output:
Thank You!
If i wanted to edit the connections dropdown, ie remove MAterial Request remove stock entry etc?
That for, please apply it.
$('div[data-doctype="Material Request"], div[data-doctype="Stock Entry"]').hide();
Output:
Thank You!
can i place this in the client side script
Yes @cmdeep
frappe.ui.form.on('Project', {
refresh: function(frm) {
$('.row.form-dashboard-section.form-heatmap').hide();
$('div[data-doctype="Material Request"], div[data-doctype="Stock Entry"]').hide();
}
});
Instead of haraasing at every single point, is there a link you can give me that will help me edit those things that i want. see code below
frappe.ui.form.on(‘Project’, {
refresh: function(frm) {
$(‘.row.form-dashboard-section.form-heatmap’).hide();
$(‘div[data-doctype=“Material Request”], div[data-doctype=“Stock Entry”], div[data-doctype=“BOM”], form-link-title[span=“Material”]’).hide();
}
});