added dispatch_uid to post_save signal of StockItem
This commit is contained in:
parent
83309fd054
commit
e0cd02ee60
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue