Remove Activity Dropdown from Projects

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!

2 Likes

Always there from me @NCP thanks man

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!

3 Likes

@NCP always a lgend i need to send you a coffee

1 Like

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();
	}
});
3 Likes

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();
}
});

1 Like