From 5307f0f51b7b3f780cbb2fcf774a9795968df138 Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 26 Nov 2021 20:43:01 +1100 Subject: [PATCH 1/3] Collect translation stats as part of docker container initialization --- docker/init.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/init.sh b/docker/init.sh index b598a3ee79..7622806d0f 100644 --- a/docker/init.sh +++ b/docker/init.sh @@ -38,5 +38,8 @@ fi cd ${INVENTREE_HOME} +# Collect translation file stats +invoke translate-stats + # Launch the CMD *after* the ENTRYPOINT completes exec "$@" From 268bfda0656087f856e60c09b37333b1ae51c4de Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 26 Nov 2021 21:02:06 +1100 Subject: [PATCH 2/3] Layout tweaks for settings page --- InvenTree/templates/InvenTree/settings/user.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/InvenTree/templates/InvenTree/settings/user.html b/InvenTree/templates/InvenTree/settings/user.html index ba99a69fde..a4c12a9bb0 100644 --- a/InvenTree/templates/InvenTree/settings/user.html +++ b/InvenTree/templates/InvenTree/settings/user.html @@ -210,14 +210,14 @@
-

{% trans "Some languages are not complete" %} - {% if ALL_LANG %} - . {% trans "Show only sufficent" %} - {% else %} - {% trans "and hidden." %} {% trans "Show them too" %} - {% endif %} -

+

{% trans "Some languages are not complete" %} + {% if ALL_LANG %} + . {% trans "Show only sufficent" %} + {% else %} + {% trans "and hidden." %} {% trans "Show them too" %} + {% endif %} +

From 2b704ccdc05aaad5b42ccacc4a9857d7e098fb72 Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 26 Nov 2021 21:09:29 +1100 Subject: [PATCH 3/3] Exclude same part from "related" input --- InvenTree/part/templates/part/detail.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/InvenTree/part/templates/part/detail.html b/InvenTree/part/templates/part/detail.html index f8a2c4ba01..a737bfa6fc 100644 --- a/InvenTree/part/templates/part/detail.html +++ b/InvenTree/part/templates/part/detail.html @@ -763,10 +763,12 @@ part_2: { label: '{% trans "Related Part" %}', filters: { + exclude_id: {{ part.pk }}, exclude_related: {{ part.pk }}, } } }, + focus: 'part_2', title: '{% trans "Add Related Part" %}', onSuccess: function() { $('#related-parts-table').bootstrapTable('refresh');