Fix translated string (#3466)

StockItem -> stock item
This commit is contained in:
Oliver 2022-08-04 10:19:53 +10:00 committed by GitHub
parent 727a43b7fc
commit ed528da1d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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')