2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 21:45:39 +00:00

More fixes

- Allow stock item creation for inactive parts
- Better handling of successful stock item creation
- Disable fields rather than hiding them
This commit is contained in:
Oliver
2021-11-05 00:02:55 +11:00
parent b41dbba2b0
commit f27acde934
7 changed files with 73 additions and 22 deletions

View File

@ -886,7 +886,6 @@
onPanelLoad("part-stock", function() {
$('#new-stock-item').click(function () {
createNewStockItem({
reload: true,
data: {
part: {{ part.id }},
{% if part.default_location %}
@ -919,7 +918,6 @@
$('#item-create').click(function () {
createNewStockItem({
reload: true,
data: {
part: {{ part.id }},
}