Explorar el Código

Merge pull request #3955 from rohitwaghchaure/minor_template_validation_issue

[minor] Skip template validation for js print format
version-14
Rushabh Mehta hace 8 años
committed by GitHub
padre
commit
013e2da67c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      frappe/printing/doctype/print_format/print_format.py

+ 1
- 1
frappe/printing/doctype/print_format/print_format.py Ver fichero

@@ -27,7 +27,7 @@ class PrintFormat(Document):
if not self.module: if not self.module:
self.module = frappe.db.get_value('DocType', self.doc_type, '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) validate_template(self.html)


def extract_images(self): def extract_images(self):


Cargando…
Cancelar
Guardar