mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 00:44:45 +00:00
Merge pull request #51368 from Ponnusamy1-V/error-when-reposting-on-background
fix: start reposting accounting ledger after commit
This commit is contained in:
@@ -146,6 +146,7 @@ class RepostAccountingLedger(Document):
|
|||||||
account_repost_doc=self.name,
|
account_repost_doc=self.name,
|
||||||
is_async=True,
|
is_async=True,
|
||||||
job_name=job_name,
|
job_name=job_name,
|
||||||
|
enqueue_after_commit=True,
|
||||||
)
|
)
|
||||||
frappe.msgprint(_("Repost has started in the background"))
|
frappe.msgprint(_("Repost has started in the background"))
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user