diff --git a/frappe/printing/doctype/print_format/print_format.py b/frappe/printing/doctype/print_format/print_format.py index eb39134d02..1c11f2d519 100644 --- a/frappe/printing/doctype/print_format/print_format.py +++ b/frappe/printing/doctype/print_format/print_format.py @@ -34,7 +34,7 @@ class PrintFormat(Document): if self.custom_format and self.raw_printing and not self.raw_commands: frappe.throw(_('{0} are required').format(frappe.bold(_('Raw Commands'))), frappe.MandatoryError) - if self.custom_format and not self.html: + if self.custom_format and not self.html and not self.raw_printing: frappe.throw(_('{0} is required').format(frappe.bold(_('HTML'))), frappe.MandatoryError) def extract_images(self):