2
0
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:
Oliver Walters
2019-06-28 10:00:23 +10:00
parent ed2461adf1
commit b6a6e2dae7
5 changed files with 70 additions and 7 deletions

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