diff --git a/InvenTree/order/models.py b/InvenTree/order/models.py index fef6344240..87ce0b525a 100644 --- a/InvenTree/order/models.py +++ b/InvenTree/order/models.py @@ -1376,7 +1376,7 @@ class SalesOrderAllocation(models.Model): # TODO: The logic here needs improving. Do we need to subtract our own amount, or something? if self.item.quantity - self.item.allocation_count() + self.quantity < self.quantity: - errors['quantity'] = _('StockItem is over-allocated') + errors['quantity'] = _('Stock item is over-allocated') if self.quantity <= 0: errors['quantity'] = _('Allocation quantity must be greater than zero')