diff --git a/InvenTree/stock/views.py b/InvenTree/stock/views.py index faad9db324..4b62e9903d 100644 --- a/InvenTree/stock/views.py +++ b/InvenTree/stock/views.py @@ -1120,7 +1120,8 @@ class StockItemSerialize(AjaxUpdateView): initials['quantity'] = item.quantity initials['serial_numbers'] = item.part.getSerialNumberString(item.quantity) - initials['destination'] = item.location.pk + if item.location is not None: + initials['destination'] = item.location.pk return initials