fix: test cases related to default letterhead change

This commit is contained in:
khushi8112
2026-02-24 18:24:09 +05:30
parent 570f574758
commit 8a2cb96c2a
2 changed files with 15 additions and 1 deletions

View File

@@ -316,6 +316,9 @@ def set_default_print_formats():
if frappe.get_meta(doctype).default_print_format:
continue
if not frappe.db.exists("Print Format", print_format):
continue
frappe.make_property_setter(
{
"doctype": doctype,
@@ -345,7 +348,7 @@ def create_letter_head():
"letter_head_name": name,
"source": "HTML",
"content": content,
"is_default": 1 if name == "Company Letterhead" else 0,
"is_default": 1 if name == "Company Letterhead - Grey" else 0,
}
)
doc.insert(ignore_permissions=True)