mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
fix import
This commit is contained in:
parent
2df049fe05
commit
a9cfdf8fdb
@ -10,7 +10,6 @@ import InvenTree.tasks
|
||||
import common.notifications
|
||||
|
||||
import part.models
|
||||
from part import tasks as part_tasks
|
||||
|
||||
logger = logging.getLogger("inventree")
|
||||
|
||||
@ -50,6 +49,6 @@ def notify_low_stock_if_required(part: part.models.Part):
|
||||
for p in parts:
|
||||
if p.is_part_low_on_stock():
|
||||
InvenTree.tasks.offload_task(
|
||||
part_tasks.notify_low_stock,
|
||||
notify_low_stock,
|
||||
p
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user