mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 15:15:42 +00:00 
			
		
		
		
	fix import
This commit is contained in:
		@@ -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
 | 
			
		||||
            )
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user