2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 11:10:54 +00:00

Fixes for "duplicate stock item" form

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

View File

@ -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() {