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-02 07:59:54 +10:00
committed by GitHub
parent e5e1a09b45
commit 0b8feb2c4a
8 changed files with 22 additions and 7 deletions
+6 -2
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) {