Skip to main content
GoodFirstPicks
DashboardIssuesReposLeaderboard

GoodFirstPicks by Leaveitblank © 2026

CreatorRequest a RepoPrivacy PolicyTerms of Service
Print_format_builder variable not set automatically | GoodFirstPicks

Print_format_builder variable not set automatically

frappe/frappe 1 comments 1mo ago
View on GitHub
lowopenScope: somewhat clearSkill match: maybeFrappe / ERPNextPython

Why this is a good first issue

A variable is not being set correctly during print format creation.

AI Summary

The issue involves the `print_format_builder` variable not being automatically set to 1 when adding a print format, which affects PDF generation. The fix likely involves ensuring this variable is set correctly during the print format creation process. The main blocker is understanding the exact context where this variable should be set.

Issue Description

Description of the issue

Referencing issue: #37034

When adding a print format using + Add Print Format button in the overview, the variable print_format_builder is not automatically set to 1. This should be the case because else PDFs will not be sent according to the mentioned issue.

Image

Result:

{
	"data": {
		"name": "Test2",
		"owner": "[email protected]",
		"creation": "2026-02-26 15:37:53.714015",
		"modified": "2026-02-26 15:38:22.561662",
		"modified_by": "[email protected]",
		"docstatus": 0,
		"idx": 0,
		"print_format_for": "DocType",
		"doc_type": "Sales Invoice",
		"module": "Accounts",
		"default_print_language": "de",
		"standard": "No",
		"custom_format": 0,
		"disabled": 0,
		"pdf_generator": "wkhtmltopdf",
		"print_format_type": "Jinja",
		"raw_printing": 0,
		"margin_top": 15.0,
		"margin_bottom": 15.0,
		"margin_left": 15.0,
		"margin_right": 15.0,
		"align_labels_right": 0,
		"show_section_headings": 0,
		"line_breaks": 0,
		"absolute_value": 0,
		"font_size"

GitHub Labels

bug

Want to work on this?

Claim this issue to let others know you're working on it. You'll earn 10 points when you complete it!

Risk Flags

  • potential PDF generation impact
Loading labels...

Details

Points10 pts
Difficultylow
Scopesomewhat clear
Skill Matchmaybe
Test Focusedno