feat: autocreate calendar controller file
This commit is contained in:
parent
c1e6f66fb9
commit
e24a50b327
2 changed files with 8 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
|||
// Copyright (c) {year}, {app_publisher} and contributors
|
||||
// For license information, please see license.txt
|
||||
|
||||
frappe.views.calendar["{doctype}"] = {{
|
||||
}};
|
||||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue