2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 19:20:55 +00:00

Stock item duplication now works with the API forms

This commit is contained in:
Oliver
2021-11-03 07:28:21 +11:00
parent aaf27d4098
commit ad4c4f2a6d
2 changed files with 27 additions and 7 deletions

View File

@ -463,11 +463,9 @@ $("#print-label").click(function() {
{% if roles.stock.change %}
$("#stock-duplicate").click(function() {
createNewStockItem({
// Duplicate a stock item
duplicateStockItem({{ item.pk }}, {
follow: true,
data: {
copy: {{ item.id }},
}
});
});