mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-04 09:25:21 +00:00
Fix logic for converting stock items to applicable variants
This commit is contained in:
1 parent
64f5007d3a
commit
cb075ed2c2
1 file changed
+3
-3
@@ -2050,10 +2050,10 @@ class Part(MPTTModel):
|
|||||||
if self.variant_of:
|
if self.variant_of:
|
||||||
parts.append(self.variant_of)
|
parts.append(self.variant_of)
|
||||||
|
|
||||||
siblings = self.get_siblings(include_self=False)
|
siblings = self.get_siblings(include_self=False)
|
||||||
|
|
||||||
for sib in siblings:
|
for sib in siblings:
|
||||||
parts.append(sib)
|
parts.append(sib)
|
||||||
|
|
||||||
filtered_parts = Part.objects.filter(pk__in=[part.pk for part in parts])
|
filtered_parts = Part.objects.filter(pk__in=[part.pk for part in parts])
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user