fix: linter issue

This commit is contained in:
Rohit Waghchaure
2026-06-08 23:17:29 +05:30
parent 95818ec71d
commit dd837052ef

View File

@@ -49,7 +49,7 @@ class ChequePrintTemplate(Document):
@frappe.whitelist()
def create_or_update_cheque_print_format(template_name):
frappe.only_for("System Manager")
if not frappe.db.exists("Print Format", template_name):
cheque_print = frappe.new_doc("Print Format")
cheque_print.update(