Hi guys,
We are using the calendar a lot in our ERPNext
It is an issue now because every time we open the calendar it opens in List View. We need the calendar to open in Calendar View.
Any idea how to accomplish this on version 13?
Thank you in advance.
NCP
May 26, 2022, 5:23am
2
Hi @Iulian_Olaru ,
Please apply a custom/client script.
DocType: Event
Apply To: List
Script:
frappe.listview_settings['Event'].onload = function(listview) {
window.location.href = "/app/event/view/calendar/default";
};
Reload and check it, please.
Thank You!
6 Likes
Foram
October 6, 2022, 7:31am
4
For the lead doctype, I created the calendar view. But in default, it’s not showing the option of calender view though it is been created. So how to add the calendar view there?
NCP
October 6, 2022, 7:50am
5
Calendar view add in the option for checking its example.
frappe.views.calendar["Event"] = {
field_map: {
start: "starts_on",
end: "ends_on",
id: "name",
allDay: "all_day",
title: "subject",
status: "event_type",
color: "color",
},
style_map: {
Public: "success",
Private: "info",
},
get_events_method: "frappe.desk.doctype.event.event.get_events",
};
Please set your field according.
Thank You!
anupd
October 20, 2024, 7:17am
6
This is not working in custom doctype.