refactor: add permission check and minor fixes

This commit is contained in:
khushi8112
2025-10-12 19:22:26 +05:30
parent 6e07aac5b7
commit f14b3ed723
5 changed files with 48 additions and 40 deletions

View File

@@ -286,8 +286,8 @@ def create_letter_head():
base_path = frappe.get_app_path("erpnext", "accounts", "letterhead")
letterheads = {
"Letterhead with background colour": "letterhead_with_background_colour.html",
"Letterhead Plain": "letterhead_plain.html",
"Company Letterhead": "company_letterhead.html",
"Company Letterhead - Grey": "company_letterhead_grey.html",
}
for name, filename in letterheads.items():