add check create coa account task

This commit is contained in:
ismail 2025-08-24 10:25:29 +03:00
parent 5d47a5b4cc
commit 15394da2f6
2 changed files with 615 additions and 597 deletions

View File

@ -1,7 +1,7 @@
from datetime import datetime, timedelta
from decimal import Decimal
from django.urls import reverse
from inventory.tasks import create_coa_accounts, create_make_accounts
from inventory.tasks import create_coa_accounts,check_create_coa_accounts, create_make_accounts
from django.contrib.auth.models import Group
from django.db.models.signals import post_save, post_delete
from django.dispatch import receiver
@ -179,6 +179,7 @@ def create_ledger_entity(sender, instance, created, **kwargs):
# Create COA accounts, background task
async_task(create_coa_accounts, instance)
async_task('inventory.tasks.check_create_coa_accounts', instance, schedule_type='O', schedule_time=timedelta(seconds=20))
# create_settings(instance.pk)
# create_accounts_for_make(instance.pk)

File diff suppressed because it is too large Load Diff