mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +00:00
Merge pull request #45842 from frappe/mergify/bp/version-15-hotfix/pr-45832
fix: possible model sync issue (backport #45832)
This commit is contained in:
@@ -11,6 +11,7 @@ def execute():
|
|||||||
frappe.db.set_single_value("Accounts Settings", "reconciliation_queue_size", 5)
|
frappe.db.set_single_value("Accounts Settings", "reconciliation_queue_size", 5)
|
||||||
|
|
||||||
# Create Scheduler Event record if it doesn't exist
|
# Create Scheduler Event record if it doesn't exist
|
||||||
|
if frappe.reload_doc("core", "doctype", "scheduler_event"):
|
||||||
method = "erpnext.accounts.doctype.process_payment_reconciliation.process_payment_reconciliation.trigger_reconciliation_for_queued_docs"
|
method = "erpnext.accounts.doctype.process_payment_reconciliation.process_payment_reconciliation.trigger_reconciliation_for_queued_docs"
|
||||||
if not frappe.db.get_all(
|
if not frappe.db.get_all(
|
||||||
"Scheduler Event", {"scheduled_against": "Process Payment Reconciliation", "method": method}
|
"Scheduler Event", {"scheduled_against": "Process Payment Reconciliation", "method": method}
|
||||||
|
|||||||
Reference in New Issue
Block a user