2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-30 12:36:45 +00:00

added dispatch_uid to post_save signal of StockItem

This commit is contained in:
rocheparadox 2021-10-30 08:30:39 +05:30
parent 83309fd054
commit e0cd02ee60

View File

@ -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