mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-06 02:11:16 +00:00
Fix incorrect value for "available stock"
This commit is contained in:
1 parent
4593b0f412
commit
0ab2ff306c
1 file changed
+2
-1
@@ -1345,7 +1345,8 @@ class Part(MPTTModel):
|
||||
|
||||
queryset = OrderModels.SalesOrderAllocation.objects.filter(item__part__id=self.id)
|
||||
|
||||
pending = kwargs.get('pending', None)
|
||||
# Default behaviour is to only return *pending* allocations
|
||||
pending = kwargs.get('pending', True)
|
||||
|
||||
if pending is True:
|
||||
# Look only for 'open' orders which have not shipped
|
||||
|
||||
Reference in new issue
Block a user