From aec10e0cc79e8529aa96c4a9e5bf1d25609c0393 Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 28 Apr 2022 14:58:05 +1000 Subject: [PATCH] Fix part allocation check --- InvenTree/part/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InvenTree/part/models.py b/InvenTree/part/models.py index 1edae69351..365ed62914 100644 --- a/InvenTree/part/models.py +++ b/InvenTree/part/models.py @@ -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)