From ed528da1d1cc11be8713ed7cb1643535cac519da Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 4 Aug 2022 10:19:53 +1000 Subject: [PATCH] Fix translated string (#3466) StockItem -> stock item --- InvenTree/order/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')