mirror of
https://github.com/inventree/InvenTree.git
synced 2025-12-15 08:48:11 +00:00
Filter available stock items by Part reference
This commit is contained in:
@@ -283,8 +283,10 @@ class InstallStockForm(HelperForm):
|
||||
help_text=_('Stock item to install')
|
||||
)
|
||||
|
||||
quantity = RoundingDecimalFormField(
|
||||
quantity_to_install = RoundingDecimalFormField(
|
||||
max_digits=10, decimal_places=5,
|
||||
initial=1,
|
||||
label=_('Quantity'),
|
||||
help_text=_('Stock quantity to assign'),
|
||||
validators=[
|
||||
MinValueValidator(0.001)
|
||||
@@ -295,7 +297,7 @@ class InstallStockForm(HelperForm):
|
||||
model = StockItem
|
||||
fields = [
|
||||
'stock_item',
|
||||
'quantity',
|
||||
'quantity_to_install',
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user