mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-23 07:10:55 +00:00
Change the manner in which active parts are filtered for BOM
- Prevented BOM from displaying for an inactive part - Now manually filter the queryset in the form view
This commit is contained in:
InvenTree/part
@ -987,7 +987,6 @@ class BomItem(models.Model):
|
||||
help_text='Select parent part',
|
||||
limit_choices_to={
|
||||
'assembly': True,
|
||||
'active': True,
|
||||
})
|
||||
|
||||
# A link to the child item (sub-part)
|
||||
@ -996,7 +995,6 @@ class BomItem(models.Model):
|
||||
help_text='Select part to be used in BOM',
|
||||
limit_choices_to={
|
||||
'component': True,
|
||||
'active': True
|
||||
})
|
||||
|
||||
# Quantity required
|
||||
|
Reference in New Issue
Block a user