mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-20 22:06:28 +00:00
added dispatch_uid to post_save signal of StockItem
This commit is contained in:
@ -1652,7 +1652,7 @@ def before_delete_stock_item(sender, instance, using, **kwargs):
|
|||||||
child.save()
|
child.save()
|
||||||
|
|
||||||
|
|
||||||
@receiver(post_save, sender=StockItem)
|
@receiver(post_save, sender=StockItem, dispatch_uid='stock_item_post_save_log')
|
||||||
def after_save_stock_item(sender, instance: StockItem, **kwargs):
|
def after_save_stock_item(sender, instance: StockItem, **kwargs):
|
||||||
"""
|
"""
|
||||||
Check if the stock quantity has fallen below the minimum threshold of part. If yes, notify the users who have
|
Check if the stock quantity has fallen below the minimum threshold of part. If yes, notify the users who have
|
||||||
|
Reference in New Issue
Block a user