Skip to content

Commit 9590345

Browse files
authored
Merge pull request frappe#38268 from Shllokkk/report-printing-fixes
fix: allow standard print formats for reports
2 parents f924fed + f265da9 commit 9590345

3 files changed

Lines changed: 1 addition & 4 deletions

File tree

frappe/printing/doctype/print_format/print_format.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ frappe.ui.form.on("Print Format", {
7272
},
7373
print_format_for: function (frm) {
7474
if (frm.doc.print_format_for === "Report") {
75-
frm.set_value("standard", "No");
7675
frm.set_value("custom_format", 1);
7776
}
7877
},

frappe/printing/doctype/print_format/print_format.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@
8181
"oldfieldname": "standard",
8282
"oldfieldtype": "Select",
8383
"options": "No\nYes",
84-
"read_only_depends_on": "eval:doc.print_format_for === \"Report\";",
8584
"reqd": 1,
8685
"search_index": 1
8786
},
@@ -294,7 +293,7 @@
294293
"icon": "fa fa-print",
295294
"idx": 1,
296295
"links": [],
297-
"modified": "2026-02-11 13:17:55.662780",
296+
"modified": "2026-03-26 16:27:02.559100",
298297
"modified_by": "Administrator",
299298
"module": "Printing",
300299
"name": "Print Format",

frappe/printing/doctype/print_format/print_format.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ def onload(self):
6363
def before_save(self):
6464
if self.print_format_for == "Report":
6565
self.custom_format = 1
66-
self.standard = "No"
6766

6867
def get_html(self, docname, letterhead=None):
6968
return get_html(self.doc_type, docname, self.name, letterhead)

0 commit comments

Comments
 (0)