2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 20:45:44 +00:00

[PUI] Installed items (#8202)

* Improve checks if "installed items" panel should be displayed

* Adds ability to exclude a given field from form data

* Implement form for installing stock item

* Add placeholder for uninstall action

* Add "note" field

* Add PUI form to uninstall stock item
This commit is contained in:
Oliver
2024-09-27 16:00:06 +10:00
committed by GitHub
parent a5f2273e14
commit 392624cb84
7 changed files with 246 additions and 31 deletions

View File

@ -820,9 +820,9 @@ class InstallStockItemSerializer(serializers.Serializer):
quantity = data.get('quantity', stock_item.quantity)
if quantity > stock_item.quantity:
raise ValidationError(
_('Quantity to install must not exceed available quantity')
)
raise ValidationError({
'quantity': _('Quantity to install must not exceed available quantity')
})
return data