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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user