organization limit for quota - get org childs
This commit is contained in:
11
apps/authentication/signals.py
Normal file
11
apps/authentication/signals.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from django.db.models import Sum
|
||||
from apps.product.models import QuotaDistribution
|
||||
from apps.warehouse.models import InventoryQuotaSaleTransaction
|
||||
from django.db.models.signals import post_save, post_delete
|
||||
from django.dispatch import receiver
|
||||
|
||||
|
||||
@receiver([post_save, post_delete], sender=QuotaDistribution)
|
||||
@receiver([post_save, post_delete], sender=InventoryQuotaSaleTransaction)
|
||||
def update_organization_stats(sender, instance, **kwargs):
|
||||
pass
|
||||
Reference in New Issue
Block a user