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