A variable is not being set correctly during print format creation.
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.
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.
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"
Claim this issue to let others know you're working on it. You'll earn 10 points when you complete it!