2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 03:00:54 +00:00

Translation fixes (#4621)

* Remove HTML tags from translateable string

* Improve another string

* Improve strings for plugin version check

* Cleanup duplicate serials msg

* JS translations

* fmt
This commit is contained in:
Oliver
2023-04-18 00:12:14 +10:00
committed by GitHub
parent 593a716c29
commit f6b9b12745
6 changed files with 15 additions and 11 deletions

View File

@ -1383,7 +1383,8 @@ class StockItem(InvenTreeBarcodeMixin, MetadataMixin, common.models.MetaMixin, M
if len(existing) > 0:
exists = ','.join([str(x) for x in existing])
raise ValidationError({"serial_numbers": _("Serial numbers already exist: {exists}").format(exists=exists)})
msg = _("Serial numbers already exist") + f": {exists}"
raise ValidationError({"serial_numbers": msg})
# Create a new stock item for each unique serial number
for serial in serials: