2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 03:00:54 +00:00

Move "getAvailableStockItems" to the build model

This commit is contained in:
Oliver Walters
2020-10-23 23:33:27 +11:00
parent 0752df26dc
commit fb7d9a7edf
4 changed files with 73 additions and 37 deletions

View File

@ -139,6 +139,7 @@ class StockItem(MPTTModel):
# A Query filter which will be re-used in multiple places to determine if a StockItem is actually "in stock"
IN_STOCK_FILTER = Q(
quantity__gt=0,
sales_order=None,
build_order=None,
belongs_to=None,