2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 03:00:54 +00:00

Merge branch 'master' into feature-non-int-serial

This commit is contained in:
Ben Charlton
2020-08-25 09:28:42 +01:00
3 changed files with 26 additions and 5 deletions

View File

@ -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