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()
@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):
"""
Check if the stock quantity has fallen below the minimum threshold of part. If yes, notify the users who have