How to open the calendar view from Asset Maintenance

I want to open the calendar view at the sidebar

i also created the asset_maintenance_calendar.js

frappe.views.calendar[“Asset Maintenance”] = {
field_map: {
“start”: “start”,
“end”: “end”,
“id”: “asset_name”,
“title”: “asset_name”,
“allDay”: “allDay”
get_events_method: “erpnext.assets.doctype.asset_maintenance.asset_maintenance.get_events”

but it still call the frappe api

how to let the calendar view to call the erpnext.assets.doctype.asset_maintenance.asset_maintenance.get_events

please help, thanks

1 Like