ERPNext.com Frappe Cloud Documentation Partners Frappe School Public Chat

Display gantt chart issue with new doctype Planning

Hello, community,
I have new doctype called Planning
And make planning_calendar.js file to start working on charts, but after refreshing the record is shoed with wrong and fixed dates!

This is my code:-

frappe.views.calendar["Planning"] = {
	field_map: {
		"start": "start_date",
		"end": "end_date",
		"id": "name",
		"title": "subject",
		"allDay": "allDay"
	},
	gantt: true,
	filters: [
		{
			"fieldtype": "Link",
			"fieldname": "project",
			"options": "Project",
			"label": __("Project")
		}
	],
	get_events_method: "erpnext.projects.doctype.planning.planning.get_events"
}

This is how it shows:-

:sos:

Please note that in Develop, Frappe are working on a slightly differently laid out Gantt chart, so i would check your code works against Develop first as otherwise you will be targetting two slightly different GUI’s otherwise

1 Like

@OmarJaber

Did you find any solutions for your problem!?

We’re also having the same issue. @OmarJaber have you managed to get any resolution? This is very frustrating. We’ve also logged a bug on github: https://github.com/frappe/frappe/issues/15582

Any ideas anyone?