Merge pull request #2892 from SchrodingersGat/build-allocation-fix
Fix part allocation check
This commit is contained in:
commit
e9500e4981
|
|
@ -2740,8 +2740,8 @@ class BomItem(models.Model, DataImportMixin):
|
||||||
if not p.active:
|
if not p.active:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Trackable parts cannot be 'auto allocated'
|
# Trackable status must be the same as the sub_part
|
||||||
if p.trackable:
|
if p.trackable != self.sub_part.trackable:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
valid_parts.append(p)
|
valid_parts.append(p)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue