Fixes for "duplicate stock item" form

- Redirect to the new stock item
- Display a success message
This commit is contained in:
Oliver committed 2022-03-09 10:34:47 +11:00
1 parent 8a8fd1b4ba
commit d56fed3211
2 files changed
+12 -4

No files matched your search

@@ -462,9 +462,7 @@ $("#print-label").click(function() {
{% if roles.stock.change %}
$("#stock-duplicate").click(function() {
// Duplicate a stock item
duplicateStockItem({{ item.pk }}, {
follow: true,
});
duplicateStockItem({{ item.pk }}, {});
});
$('#stock-edit').click(function() {