2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-05 21:20:56 +00:00

Add some more form candy

This commit is contained in:
Oliver Walters
2020-05-16 11:55:10 +10:00
parent 498ad4162c
commit 4cb97b1340
5 changed files with 54 additions and 11 deletions

View File

@ -937,6 +937,7 @@ class StockItemCreate(AjaxCreateView):
if part_id:
try:
part = Part.objects.get(pk=part_id)
# Check that the supplied part is 'valid'
if not part.is_template and part.active and not part.virtual:
initials['part'] = part