From 1e37fd8991c68d7c36bbfa1c0b88c397ab200498 Mon Sep 17 00:00:00 2001 From: ravibharathi656 Date: Thu, 19 Jun 2025 18:47:13 +0530 Subject: [PATCH] fix: include child doctypes in allow_on_submit patch for accounting dimensions --- erpnext/patches.txt | 2 +- .../v15_0/allow_on_submit_dimensions_for_repostable_doctypes.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/patches.txt b/erpnext/patches.txt index 69f5ec159fa..04f40be1a13 100644 --- a/erpnext/patches.txt +++ b/erpnext/patches.txt @@ -357,7 +357,7 @@ execute:frappe.db.set_single_value("Buying Settings", "project_update_frequency" execute:frappe.db.set_default("date_format", frappe.db.get_single_value("System Settings", "date_format")) erpnext.patches.v14_0.update_total_asset_cost_field erpnext.patches.v15_0.create_advance_payment_status -erpnext.patches.v15_0.allow_on_submit_dimensions_for_repostable_doctypes +erpnext.patches.v15_0.allow_on_submit_dimensions_for_repostable_doctypes #2025-06-19 erpnext.patches.v14_0.create_accounting_dimensions_in_reconciliation_tool erpnext.patches.v14_0.update_flag_for_return_invoices #2024-03-22 erpnext.patches.v15_0.create_accounting_dimensions_in_payment_request diff --git a/erpnext/patches/v15_0/allow_on_submit_dimensions_for_repostable_doctypes.py b/erpnext/patches/v15_0/allow_on_submit_dimensions_for_repostable_doctypes.py index e75610d0a53..dddeae328c7 100644 --- a/erpnext/patches/v15_0/allow_on_submit_dimensions_for_repostable_doctypes.py +++ b/erpnext/patches/v15_0/allow_on_submit_dimensions_for_repostable_doctypes.py @@ -9,6 +9,6 @@ from erpnext.accounts.doctype.repost_accounting_ledger.repost_accounting_ledger def execute(): - for dt in get_allowed_types_from_settings(): + for dt in get_allowed_types_from_settings(child_doc=True): for dimension in get_accounting_dimensions(): frappe.db.set_value("Custom Field", dt + "-" + dimension, "allow_on_submit", 1)