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'); 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 %} +

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 "$@"