feat: autocreate calendar controller file

This commit is contained in:
Safwan Samsudeen 2026-02-03 17:55:34 +05:30
parent c1e6f66fb9
commit e24a50b327
2 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,5 @@
// Copyright (c) {year}, {app_publisher} and contributors
// For license information, please see license.txt
frappe.views.calendar["{doctype}"] = {{
}};

View file

@ -880,6 +880,9 @@ class DocType(Document):
if self.is_tree:
make_boilerplate("controller_tree.js", self.as_dict())
if self.is_calendar_and_gantt:
make_boilerplate("controller_calendar.js", self.as_dict())
if self.has_web_view:
templates_path = frappe.get_module_path(
frappe.scrub(self.module), "doctype", frappe.scrub(self.name), "templates"