mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-01 04:56:45 +00:00
Secondary modal for creating a new stock location when moving stock
This commit is contained in:
parent
ad5c6630bd
commit
c1f3bddf45
@ -195,6 +195,18 @@ function loadStockTable(table, options) {
|
|||||||
stock.push(item.pk);
|
stock.push(item.pk);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Buttons for launching secondary modals
|
||||||
|
var secondary = [];
|
||||||
|
|
||||||
|
if (action == 'move') {
|
||||||
|
secondary.push({
|
||||||
|
field: 'destination',
|
||||||
|
label: 'New Location',
|
||||||
|
title: 'Create new location',
|
||||||
|
url: "/stock/location/new/",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
launchModalForm("/stock/adjust/",
|
launchModalForm("/stock/adjust/",
|
||||||
{
|
{
|
||||||
data: {
|
data: {
|
||||||
@ -204,6 +216,7 @@ function loadStockTable(table, options) {
|
|||||||
success: function() {
|
success: function() {
|
||||||
$("#stock-table").bootstrapTable('refresh');
|
$("#stock-table").bootstrapTable('refresh');
|
||||||
},
|
},
|
||||||
|
secondary: secondary,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user