mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Updated allocation card view
This commit is contained in:
@ -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...
|
||||
|
Reference in New Issue
Block a user