From 40bdc767dc6717574c58b82ebff081e007e9fac3 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Sat, 19 Aug 2017 15:15:58 +0530 Subject: [PATCH] [minor] Bypass template validation for js print format --- frappe/printing/doctype/print_format/print_format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):