mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-13 01:34:10 +00:00
fix(journal-entry): prevent submit failure due to double background queuing (backport #52083) (#52087)
Co-authored-by: V Shankar <shankarv292002@gmail.com> fix(journal-entry): prevent submit failure due to double background queuing (#52083)
This commit is contained in:
@@ -179,7 +179,7 @@ class JournalEntry(AccountsController):
|
|||||||
validate_docs_for_deferred_accounting([self.name], [])
|
validate_docs_for_deferred_accounting([self.name], [])
|
||||||
|
|
||||||
def submit(self):
|
def submit(self):
|
||||||
if len(self.accounts) > 100:
|
if len(self.accounts) > 100 and not self.meta.queue_in_background:
|
||||||
queue_submission(self, "_submit")
|
queue_submission(self, "_submit")
|
||||||
else:
|
else:
|
||||||
return self._submit()
|
return self._submit()
|
||||||
|
|||||||
Reference in New Issue
Block a user