fix(ecommerce): remove query to non-existing field (backport #31771) (#31774)

fix(ecommerce): remove query to non-existing field (#31771)

(cherry picked from commit 17b9bfd249)

Co-authored-by: Ankush Menat <ankush@frappe.io>
This commit is contained in:
mergify[bot]
2022-08-03 17:08:46 +05:30
committed by GitHub
parent df716fbd0c
commit 0e46b33ee3

View File

@@ -143,10 +143,6 @@ def get_item_for_list_in_html(context):
if (context.get("website_image") or "").startswith("files/"):
context["website_image"] = "/" + quote(context["website_image"])
context["show_availability_status"] = cint(
frappe.db.get_single_value("E Commerce Settings", "show_availability_status")
)
products_template = "templates/includes/products_as_list.html"
return frappe.get_template(products_template).render(context)