add check create coa account task
This commit is contained in:
parent
5d47a5b4cc
commit
15394da2f6
@ -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)
|
||||
|
||||
1209
inventory/tasks.py
1209
inventory/tasks.py
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user