2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-14 11:05:41 +00:00

Merge pull request #2892 from SchrodingersGat/build-allocation-fix

Fix part allocation check
This commit is contained in:
Oliver
2022-04-28 15:21:02 +10:00
committed by GitHub

View File

@ -2740,8 +2740,8 @@ class BomItem(models.Model, DataImportMixin):
if not p.active:
continue
# Trackable parts cannot be 'auto allocated'
if p.trackable:
# Trackable status must be the same as the sub_part
if p.trackable != self.sub_part.trackable:
continue
valid_parts.append(p)