mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-01 04:56:45 +00:00
Set the parent relationship when serializing StockItem object
- Keep track of which StockItem is came from
This commit is contained in:
parent
ae4ebab957
commit
3715c5d637
@ -487,6 +487,7 @@ class StockItem(MPTTModel):
|
||||
new_item.quantity = 1
|
||||
new_item.serial = serial
|
||||
new_item.pk = None
|
||||
new_item.parent = self
|
||||
|
||||
if location:
|
||||
new_item.location = location
|
||||
|
Loading…
x
Reference in New Issue
Block a user