mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06:44 +00:00
Bug fix
This commit is contained in:
parent
9e3406efc9
commit
ef9c6e9fe0
@ -31,7 +31,6 @@ from datetime import datetime, timedelta
|
|||||||
from InvenTree import helpers
|
from InvenTree import helpers
|
||||||
import InvenTree.tasks
|
import InvenTree.tasks
|
||||||
|
|
||||||
import common.models
|
|
||||||
import report.models
|
import report.models
|
||||||
import label.models
|
import label.models
|
||||||
|
|
||||||
@ -1311,6 +1310,7 @@ class StockItem(MPTTModel):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
notes = kwargs.get('notes', '')
|
notes = kwargs.get('notes', '')
|
||||||
|
code = kwargs.get('code', StockHistoryCode.SPLIT_FROM_PARENT)
|
||||||
|
|
||||||
# Do not split a serialized part
|
# Do not split a serialized part
|
||||||
if self.serialized:
|
if self.serialized:
|
||||||
@ -1352,7 +1352,7 @@ class StockItem(MPTTModel):
|
|||||||
|
|
||||||
# Add a new tracking item for the new stock item
|
# Add a new tracking item for the new stock item
|
||||||
new_stock.add_tracking_entry(
|
new_stock.add_tracking_entry(
|
||||||
StockHistoryCode.SPLIT_FROM_PARENT,
|
code,
|
||||||
user,
|
user,
|
||||||
notes=notes,
|
notes=notes,
|
||||||
deltas={
|
deltas={
|
||||||
|
Loading…
x
Reference in New Issue
Block a user