From f265da9caa272c5b4ca5a4829fed9655962fb7bf Mon Sep 17 00:00:00 2001 From: Shllokkk Date: Thu, 26 Mar 2026 16:32:55 +0530 Subject: [PATCH] fix: allow standard print formats for reports --- frappe/printing/doctype/print_format/print_format.js | 1 - frappe/printing/doctype/print_format/print_format.json | 3 +-- frappe/printing/doctype/print_format/print_format.py | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/frappe/printing/doctype/print_format/print_format.js b/frappe/printing/doctype/print_format/print_format.js index 1b15d44f15..b6cbb2b020 100644 --- a/frappe/printing/doctype/print_format/print_format.js +++ b/frappe/printing/doctype/print_format/print_format.js @@ -72,7 +72,6 @@ frappe.ui.form.on("Print Format", { }, print_format_for: function (frm) { if (frm.doc.print_format_for === "Report") { - frm.set_value("standard", "No"); frm.set_value("custom_format", 1); } }, diff --git a/frappe/printing/doctype/print_format/print_format.json b/frappe/printing/doctype/print_format/print_format.json index fa4b9313d3..6f3d8853a1 100644 --- a/frappe/printing/doctype/print_format/print_format.json +++ b/frappe/printing/doctype/print_format/print_format.json @@ -81,7 +81,6 @@ "oldfieldname": "standard", "oldfieldtype": "Select", "options": "No\nYes", - "read_only_depends_on": "eval:doc.print_format_for === \"Report\";", "reqd": 1, "search_index": 1 }, @@ -294,7 +293,7 @@ "icon": "fa fa-print", "idx": 1, "links": [], - "modified": "2026-02-11 13:17:55.662780", + "modified": "2026-03-26 16:27:02.559100", "modified_by": "Administrator", "module": "Printing", "name": "Print Format", diff --git a/frappe/printing/doctype/print_format/print_format.py b/frappe/printing/doctype/print_format/print_format.py index c122ec56bc..98eb71810d 100644 --- a/frappe/printing/doctype/print_format/print_format.py +++ b/frappe/printing/doctype/print_format/print_format.py @@ -63,7 +63,6 @@ class PrintFormat(Document): def before_save(self): if self.print_format_for == "Report": self.custom_format = 1 - self.standard = "No" def get_html(self, docname, letterhead=None): return get_html(self.doc_type, docname, self.name, letterhead)