<commit_before>// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt

// show tasks
cur_frm.cscript.refresh = function(doc) {
	if(!doc.__islocal) {
		cur_frm.add_custom_button(__("Gantt Chart"), function() {
			frappe.route_options = {"project": doc.name}
			frappe.set_route("Gantt", "Task");
		}, "icon-tasks", true);
		cur_frm.add_custom_button(__("Tasks"), function() {
			frappe.route_options = {"project": doc.name}
			frappe.set_route("List", "Task");
		}, "icon-list", true);
	}
}

cur_frm.fields_dict.customer.get_query = function(doc,cdt,cdn) {
	return{
		query: "erpnext.controllers.queries.customer_query"
	}
}
<commit_msg>[fix][minor] Set Project Gantt Chart dates same as Project dates<commit_after>// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt

// show tasks
cur_frm.cscript.refresh = function(doc) {
	if(!doc.__islocal) {
		cur_frm.add_custom_button(__("Gantt Chart"), function() {
			frappe.route_options = {"project": doc.name, "start": doc.project_start_date, "end": doc.completion_date};
			frappe.set_route("Gantt", "Task");
		}, "icon-tasks", true);
		cur_frm.add_custom_button(__("Tasks"), function() {
			frappe.route_options = {"project": doc.name}
			frappe.set_route("List", "Task");
		}, "icon-list", true);
	}
}

cur_frm.fields_dict.customer.get_query = function(doc,cdt,cdn) {
	return{
		query: "erpnext.controllers.queries.customer_query"
	}
}

{'fraction_non_alphanumeric': 0.16309291747888238, 'fraction_numerical': 0.00649772579597141, 'mean_word_length': 4.923076923076923, 'pattern_counts': {'":': 6, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4881587', 'n_tokens_mistral': 588, 'n_tokens_neox': 552, 'n_words': 109}