fix import
This commit is contained in:
parent
2df049fe05
commit
a9cfdf8fdb
|
|
@ -10,7 +10,6 @@ import InvenTree.tasks
|
||||||
import common.notifications
|
import common.notifications
|
||||||
|
|
||||||
import part.models
|
import part.models
|
||||||
from part import tasks as part_tasks
|
|
||||||
|
|
||||||
logger = logging.getLogger("inventree")
|
logger = logging.getLogger("inventree")
|
||||||
|
|
||||||
|
|
@ -50,6 +49,6 @@ def notify_low_stock_if_required(part: part.models.Part):
|
||||||
for p in parts:
|
for p in parts:
|
||||||
if p.is_part_low_on_stock():
|
if p.is_part_low_on_stock():
|
||||||
InvenTree.tasks.offload_task(
|
InvenTree.tasks.offload_task(
|
||||||
part_tasks.notify_low_stock,
|
notify_low_stock,
|
||||||
p
|
p
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue