2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-10 22:00:56 +00:00

Fix error message (#10129)

This commit is contained in:
Oliver
2025-08-05 12:02:33 +10:00
committed by GitHub
parent 3e74ab5a85
commit fb3b1fe116

View File

@@ -580,8 +580,16 @@ class BuildOutputCompleteSerializer(serializers.Serializer):
and not stock_item.passedAllRequiredTests() and not stock_item.passedAllRequiredTests()
): ):
serial = stock_item.serial serial = stock_item.serial
if serial:
errors.append( errors.append(
_(f'Build output {serial} has not passed all required tests') _(
f'Build output {serial} has not passed all required tests'
)
)
else:
errors.append(
_('Build output has not passed all required tests')
) )
if errors: if errors: