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 committed 2021-11-05 00:02:55 +11:00
1 parent b41dbba2b0
commit f27acde934
7 files changed
+73 -22

No files matched your search

@@ -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 }},
}