diff --git a/erpnext/accounts/doctype/repost_accounting_ledger/repost_accounting_ledger.py b/erpnext/accounts/doctype/repost_accounting_ledger/repost_accounting_ledger.py index e9e29d2cb31..0aeec6905eb 100644 --- a/erpnext/accounts/doctype/repost_accounting_ledger/repost_accounting_ledger.py +++ b/erpnext/accounts/doctype/repost_accounting_ledger/repost_accounting_ledger.py @@ -146,6 +146,7 @@ class RepostAccountingLedger(Document): account_repost_doc=self.name, is_async=True, job_name=job_name, + enqueue_after_commit=True, ) frappe.msgprint(_("Repost has started in the background")) else: