mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix logic for converting stock items to applicable variants
This commit is contained in:
parent
64f5007d3a
commit
cb075ed2c2
@ -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])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user