diff --git a/frappe/printing/doctype/print_format/print_format.py b/frappe/printing/doctype/print_format/print_format.py index 7c9afe9844..ea66665572 100644 --- a/frappe/printing/doctype/print_format/print_format.py +++ b/frappe/printing/doctype/print_format/print_format.py @@ -27,7 +27,7 @@ class PrintFormat(Document): if not self.module: self.module = frappe.db.get_value('DocType', self.doc_type, 'module') - if self.html: + if self.html and self.print_format_type != 'Js': validate_template(self.html) def extract_images(self):