Updated allocation card view

This commit is contained in:
Oliver Walters
2020-10-27 23:33:51 +11:00
parent 22a5f921b8
commit 3ec2396ec1
4 changed files with 8 additions and 18 deletions

View File

@ -573,9 +573,9 @@ class BuildCreate(AjaxCreateView):
if part.trackable:
# For a trackable part, either batch or serial nubmber must be specified
if not cleaned_data['batch'] and not cleaned_data['serial_numbers']:
if not cleaned_data['serial_numbers']:
raise ValidationError({
'part': _('Trackable part must have either batch or serial number specified')
'serial_numbers': _('Trackable part must have serial numbers specified')
})
# If serial numbers are set...