[minor] Bypass template validation for js print format

This commit is contained in:
Rohit Waghchaure 2017-08-19 15:15:58 +05:30
parent 4e83014f4d
commit 40bdc767dc

View file

@ -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):