From b559fee24e0f7773496098fe6eee30c41c2d43ef Mon Sep 17 00:00:00 2001 From: Soham Kulkarni <77533095+sokumon@users.noreply.github.com> Date: Thu, 18 Dec 2025 12:16:05 +0530 Subject: [PATCH] fix: add default list.html for web view (#35300) --- .../doctype/boilerplate/templates/controller_list.html | 5 +++++ frappe/core/doctype/doctype/doctype.py | 1 + 2 files changed, 6 insertions(+) create mode 100644 frappe/core/doctype/doctype/boilerplate/templates/controller_list.html diff --git a/frappe/core/doctype/doctype/boilerplate/templates/controller_list.html b/frappe/core/doctype/doctype/boilerplate/templates/controller_list.html new file mode 100644 index 0000000000..2e9d469811 --- /dev/null +++ b/frappe/core/doctype/doctype/boilerplate/templates/controller_list.html @@ -0,0 +1,5 @@ +{{% extends "templates/web.html" %}} + +{{% block page_content %}} + {{% include "templates/includes/list/list.html" %}} +{{% endblock %}} \ No newline at end of file diff --git a/frappe/core/doctype/doctype/doctype.py b/frappe/core/doctype/doctype/doctype.py index 9323d7c69f..54f798a6c4 100644 --- a/frappe/core/doctype/doctype/doctype.py +++ b/frappe/core/doctype/doctype/doctype.py @@ -884,6 +884,7 @@ class DocType(Document): if not os.path.exists(templates_path): os.makedirs(templates_path) make_boilerplate("templates/controller.html", self.as_dict()) + make_boilerplate("templates/controller_list.html", self.as_dict()) make_boilerplate("templates/controller_row.html", self.as_dict()) def export_types_to_controller(self):