Explorar el Código

[hotfix] printing images

version-14
Anand Doshi hace 9 años
padre
commit
8890cb75a7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      frappe/templates/print_formats/standard_macros.html

+ 1
- 1
frappe/templates/print_formats/standard_macros.html Ver fichero

@@ -89,7 +89,7 @@ data-fieldname="{{ df.fieldname }}" data-fieldtype="{{ df.fieldtype }}"
{% elif df.fieldtype=="Image" %}
<img src="{{ doc[doc.meta.get_field(df.fieldname).options] }}" class="img-responsive">
{% elif df.fieldtype in ("Attach", "Attach Image") and doc[df.fieldname]
and guess_mimetype(doc[df.fieldname])[0].startswith("image/") %}
and (guess_mimetype(doc[df.fieldname])[0] or "").startswith("image/") %}
<img src="{{ doc[df.fieldname] }}" class="img-responsive">
{% elif df.fieldtype=="HTML" %}
{{ frappe.render_template(df.options, {"doc":doc}) }}


Cargando…
Cancelar
Guardar