diff --git a/erpnext/templates/includes/macros.html b/erpnext/templates/includes/macros.html index 0967e97138d..6748a5ebd29 100644 --- a/erpnext/templates/includes/macros.html +++ b/erpnext/templates/includes/macros.html @@ -1,6 +1,6 @@ {% macro product_image_square(website_image, css_class="") %}
+ {% if website_image -%} style="background-image: url('{{ frappe.utils.quoted(website_image) | abs_url }}');" {%- endif %}> {% if not website_image -%}{%- endif %}
{% endmacro %} @@ -8,7 +8,7 @@ {% macro product_image(website_image, css_class="") %}
{% if website_image -%} - + {%- else -%} {%- endif %}