2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-16 01:36:29 +00:00

Display proper printing target name in the label printing modal dialog (#4727)

Fix #4717
This commit is contained in:
Miklós Márton
2023-05-01 23:59:54 +02:00
committed by GitHub
parent e5e1a09b45
commit 0b8feb2c4a
8 changed files with 22 additions and 7 deletions

View File

@@ -1724,7 +1724,9 @@ function loadStockTable(table, options) {
labels: {
url: '{% url "api-stockitem-label-list" %}',
key: 'item',
}
},
singular_name: '{% trans "stock item" %}',
plural_name: '{% trans "stock items" %}'
});
// Override the default values, or add new ones
@@ -2378,7 +2380,9 @@ function loadStockLocationTable(table, options) {
labels: {
url: '{% url "api-stocklocation-label-list" %}',
key: 'location'
}
},
singular_name: '{% trans "stock location" %}',
plural_name: '{% trans "stock locations" %}',
});
for (var key in params) {