From c564896355a8545ea84ca2859b07e3e911c86cab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erkut=20Alaku=C5=9F?= Date: Mon, 9 Aug 2021 12:11:53 +0300 Subject: [PATCH] Localization of item.quantity removed Localization of quantity for different cultures(turkish in my case) using comma(,) instead of dot(.) leads syntax error in javascript code and prevents stock item history to load. --- InvenTree/stock/templates/stock/item.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/InvenTree/stock/templates/stock/item.html b/InvenTree/stock/templates/stock/item.html index d380ea3369..19295d1198 100644 --- a/InvenTree/stock/templates/stock/item.html +++ b/InvenTree/stock/templates/stock/item.html @@ -3,6 +3,7 @@ {% load static %} {% load inventree_extras %} {% load i18n %} +{% load l10n %} {% load markdownify %} {% block menubar %} @@ -152,7 +153,7 @@ { stock_item: {{ item.pk }}, part: {{ item.part.pk }}, - quantity: {{ item.quantity }}, + quantity: {{ item.quantity|unlocalize }}, } ); @@ -395,4 +396,4 @@ url: "{% url 'api-stock-tracking-list' %}", }); -{% endblock %} \ No newline at end of file +{% endblock %}